Add support clothing equip/unequip doafters (#24389)

* add clothing equip/unequip doafters

* boowomp
This commit is contained in:
Nemanja
2024-01-28 05:48:42 -05:00
committed by GitHub
parent 19a05e11d0
commit 804c76f8c9
4 changed files with 133 additions and 19 deletions

View File

@@ -118,7 +118,7 @@ public sealed class SmartEquipSystem : EntitySystem
}
_hands.TryDrop(uid, hands.ActiveHand, handsComp: hands);
_inventory.TryEquip(uid, handItem.Value, equipmentSlot, predicted: true);
_inventory.TryEquip(uid, handItem.Value, equipmentSlot, predicted: true, checkDoafter:true);
return;
}
@@ -209,7 +209,7 @@ public sealed class SmartEquipSystem : EntitySystem
return;
}
_inventory.TryUnequip(uid, equipmentSlot, inventory: inventory, predicted: true);
_inventory.TryUnequip(uid, equipmentSlot, inventory: inventory, predicted: true, checkDoafter: true);
_hands.TryPickup(uid, slotItem, handsComp: hands);
}
}