Fix to unequip

This commit is contained in:
ZioPao
2024-08-23 04:48:03 +02:00
parent 6883c81322
commit a2b3db6793

View File

@@ -43,7 +43,14 @@ end
local og_ISUnequipAction_new = ISUnequipAction.new
function ISUnequipAction:new(character, item, time)
local action = og_ISUnequipAction_new(self, character, item, time)
---@cast item InventoryItem
-- For some reason (I have no clue why), if we re-run the method it breaks basically every unequip clothing action. Not for weapons though.
if instanceof(item, 'HandWeapon') then
--print("Running handlespeedspecificaction")
HandleSpeedSpecificAction(action)
end
return action
end