Puddle drinking (#16373)

This commit is contained in:
Kara
2023-05-12 18:32:57 -07:00
committed by GitHub
parent 2112cc30ad
commit 9059185efe
3 changed files with 8 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ namespace Content.Server.Nutrition.EntitySystems
if (component.Pressurized &&
!component.Opened &&
_random.Prob(0.25f) &&
_solutionContainerSystem.TryGetDrainableSolution(uid, out var interactions))
_solutionContainerSystem.TryGetSolution(uid, component.SolutionName, out var interactions))
{
component.Opened = true;
UpdateAppearance(component);
@@ -229,7 +229,7 @@ namespace Content.Server.Nutrition.EntitySystems
return true;
}
if (!_solutionContainerSystem.TryGetDrainableSolution(item, out var drinkSolution) ||
if (!_solutionContainerSystem.TryGetSolution(item, drink.SolutionName, out var drinkSolution) ||
drinkSolution.Volume <= 0)
{
_popupSystem.PopupEntity(Loc.GetString("drink-component-try-use-drink-is-empty",