Fix forensics not being applied to held items (#30609)
* Initial commit * Fix merge changes * sloth comment: bitmask * fix MIA parameter --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: EmoGarbage404 <retron404@gmail.com>
This commit is contained in:
@@ -160,7 +160,7 @@ public sealed class ToggleableClothingSystem : EntitySystem
|
||||
// This should maybe double check that the entity currently in the slot is actually the attached clothing, but
|
||||
// if its not, then something else has gone wrong already...
|
||||
if (component.Container != null && component.Container.ContainedEntity == null && component.ClothingUid != null)
|
||||
_inventorySystem.TryUnequip(args.Equipee, component.Slot, force: true);
|
||||
_inventorySystem.TryUnequip(args.Equipee, component.Slot, force: true, triggerHandContact: true);
|
||||
}
|
||||
|
||||
private void OnRemoveToggleable(EntityUid uid, ToggleableClothingComponent component, ComponentRemove args)
|
||||
@@ -248,7 +248,7 @@ public sealed class ToggleableClothingSystem : EntitySystem
|
||||
user, user);
|
||||
}
|
||||
else
|
||||
_inventorySystem.TryEquip(user, parent, component.ClothingUid.Value, component.Slot);
|
||||
_inventorySystem.TryEquip(user, parent, component.ClothingUid.Value, component.Slot, triggerHandContact: true);
|
||||
}
|
||||
|
||||
private void OnGetActions(EntityUid uid, ToggleableClothingComponent component, GetItemActionsEvent args)
|
||||
|
||||
Reference in New Issue
Block a user