From 6738fc06d56d5b225830573ebe4955886747e265 Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Sun, 24 Sep 2023 21:49:58 +0100 Subject: [PATCH] fix moth z on clothes eating (#20456) --- Content.Server/Nutrition/EntitySystems/FoodSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/Nutrition/EntitySystems/FoodSystem.cs b/Content.Server/Nutrition/EntitySystems/FoodSystem.cs index f1a4a6d5f4..af03718740 100644 --- a/Content.Server/Nutrition/EntitySystems/FoodSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/FoodSystem.cs @@ -2,6 +2,7 @@ using System.Linq; using Content.Server.Body.Components; using Content.Server.Body.Systems; using Content.Server.Chemistry.EntitySystems; +using Content.Server.Inventory; using Content.Server.Nutrition.Components; using Content.Server.Popups; using Content.Server.Stack; @@ -61,7 +62,7 @@ public sealed class FoodSystem : EntitySystem // TODO add InteractNoHandEvent for entities like mice. // run after openable for wrapped/peelable foods - SubscribeLocalEvent(OnUseFoodInHand, after: new[] { typeof(OpenableSystem) }); + SubscribeLocalEvent(OnUseFoodInHand, after: new[] { typeof(OpenableSystem), typeof(ServerInventorySystem) }); SubscribeLocalEvent(OnFeedFood); SubscribeLocalEvent>(AddEatVerb); SubscribeLocalEvent(OnDoAfter); -- 2.51.2