Fix for stripping doafters (#30821)
Apparently I need to check if they're holding an item Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -229,7 +229,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
|||||||
|
|
||||||
// If an item was in the user's hand to begin with,
|
// If an item was in the user's hand to begin with,
|
||||||
// check if the user is no longer holding the item.
|
// check if the user is no longer holding the item.
|
||||||
if (args.BreakOnDropItem && !_hands.IsHolding((args.User, hands), doAfter.InitialItem))
|
if (args.BreakOnDropItem && doAfter.InitialItem != null && !_hands.IsHolding((args.User, hands), doAfter.InitialItem))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// If the user changes which hand is active at all, interrupt the do-after
|
// If the user changes which hand is active at all, interrupt the do-after
|
||||||
|
|||||||
Reference in New Issue
Block a user