Add BreakOnDropItem, update do afters, remove unnecessary declarations (#30361)
* Add BreakOnDropItem, update do afters, remove unnecessary declarations * bola * Changed my mind about the nuke * gennies too * Make the comments more clear. * Sorry for the trailing commas * Revert "Sorry for the trailing commas" This reverts commit e60fd9a30977393df3344948e6d5c0ce035723cd. --------- Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -227,7 +227,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
||||
|
||||
// For this we need to stay on the same hand slot and need the same item in that hand slot
|
||||
// (or if there is no item there we need to keep it free).
|
||||
if (args.NeedHand && args.BreakOnHandChange)
|
||||
if (args.NeedHand && (args.BreakOnHandChange || args.BreakOnDropItem))
|
||||
{
|
||||
if (!TryComp(args.User, out HandsComponent? handsComponent))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user