]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Allow eating and drinking to be cancelled. (#15434)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sun, 23 Apr 2023 05:35:57 +0000 (17:35 +1200)
committerGitHub <noreply@github.com>
Sun, 23 Apr 2023 05:35:57 +0000 (01:35 -0400)
Content.Server/Nutrition/EntitySystems/DrinkSystem.cs
Content.Server/Nutrition/EntitySystems/FoodSystem.cs

index 41212e536b0a7b5a04fced99abd51bff6a5e9076..71fb0a2fcf40487c5a6688ef556edb1d4fee7f53 100644 (file)
@@ -282,7 +282,6 @@ namespace Content.Server.Nutrition.EntitySystems
                 // Mice and the like can eat without hands.
                 // TODO maybe set this based on some CanEatWithoutHands event or component?
                 NeedHand = forceDrink,
-                CancelDuplicate = false,
             };
 
             _doAfterSystem.TryStartDoAfter(doAfterEventArgs);
index a78aa7712467968f4262886564942464e7b2ccb1..5f107180ee46377842b79936915baf56a0f79384 100644 (file)
@@ -146,8 +146,6 @@ namespace Content.Server.Nutrition.EntitySystems
                 // Mice and the like can eat without hands.
                 // TODO maybe set this based on some CanEatWithoutHands event or component?
                 NeedHand = forceFeed,
-                //Works better with cancel duplicate on because you can just use again to stop
-                CancelDuplicate = false,
             };
 
             _doAfterSystem.TryStartDoAfter(doAfterArgs);