Multiple uses on Food/Drink won't cancel the do-after anymore (#15163)
* stops do-afters from cancelling if food/drink is used twice * Update DrinkSystem.cs
This commit is contained in:
@@ -281,6 +281,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
|||||||
// Mice and the like can eat without hands.
|
// Mice and the like can eat without hands.
|
||||||
// TODO maybe set this based on some CanEatWithoutHands event or component?
|
// TODO maybe set this based on some CanEatWithoutHands event or component?
|
||||||
NeedHand = forceDrink,
|
NeedHand = forceDrink,
|
||||||
|
CancelDuplicate = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
_doAfterSystem.TryStartDoAfter(doAfterEventArgs);
|
_doAfterSystem.TryStartDoAfter(doAfterEventArgs);
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
|||||||
// Mice and the like can eat without hands.
|
// Mice and the like can eat without hands.
|
||||||
// TODO maybe set this based on some CanEatWithoutHands event or component?
|
// TODO maybe set this based on some CanEatWithoutHands event or component?
|
||||||
NeedHand = forceFeed,
|
NeedHand = forceFeed,
|
||||||
|
CancelDuplicate = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
_doAfterSystem.TryStartDoAfter(doAfterEventArgs);
|
_doAfterSystem.TryStartDoAfter(doAfterEventArgs);
|
||||||
|
|||||||
Reference in New Issue
Block a user