]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Multiple uses on Food/Drink won't cancel the do-after anymore (#15163)
authorkeronshb <54602815+keronshb@users.noreply.github.com>
Thu, 6 Apr 2023 02:47:20 +0000 (22:47 -0400)
committerGitHub <noreply@github.com>
Thu, 6 Apr 2023 02:47:20 +0000 (19:47 -0700)
* stops do-afters from cancelling if food/drink is used twice

* Update DrinkSystem.cs

Content.Server/Nutrition/EntitySystems/DrinkSystem.cs
Content.Server/Nutrition/EntitySystems/FoodSystem.cs

index 21ab837b48160ca040b3c68c7852b78cb68d411a..64efdc89fe54126495cc1958efcf1e40c7f45d6b 100644 (file)
@@ -281,6 +281,7 @@ 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 30cd1c8ba6c6246445d3c7a78eee804b11c0c9fc..d0e89ea9f0e2fd6fc7ca2774db6038d0b69ec134 100644 (file)
@@ -146,6 +146,7 @@ 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,
+                CancelDuplicate = false,
             };
 
             _doAfterSystem.TryStartDoAfter(doAfterEventArgs);