Fix drink system double-refunding solutions on failure (#9569)

This commit is contained in:
Leon Friedrich
2022-07-09 20:53:18 +12:00
committed by GitHub
parent 90f2ad50fd
commit 54ea493bfe

View File

@@ -315,7 +315,6 @@ namespace Content.Server.Nutrition.EntitySystems
// All stomach are full or can't handle whatever solution we have.
if (firstStomach == null)
{
_solutionContainerSystem.TryAddSolution(args.Drink.Owner, args.DrinkSolution, drained);
_popupSystem.PopupEntity(Loc.GetString("drink-component-try-use-drink-had-enough"),
uid, Filter.Entities(uid));