From 69025c8262edf30b67f6314d8800e8c66cc78cde Mon Sep 17 00:00:00 2001 From: ZioPao Date: Thu, 17 Apr 2025 12:52:23 +0200 Subject: [PATCH] fix: disabled ISDetachItemHotbar override, broken and unneccesary --- .../lua/client/TOC/TimedActions/IgnoredActions.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua b/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua index 8a12c1e..a42d7af 100644 --- a/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua +++ b/common/media/lua/client/TOC/TimedActions/IgnoredActions.lua @@ -29,12 +29,12 @@ function ISAttachItemHotbar:new(character, item, slot, slotIndex, slotDef) return action end -local og_ISDetachItemHotbar_new = ISDetachItemHotbar.new -function ISDetachItemHotbar:new(character, item) - local action = og_ISDetachItemHotbar_new(self, character, item) - action = OverrideAction(action, -1) - return action -end +-- local og_ISDetachItemHotbar_new = ISDetachItemHotbar.new +-- function ISDetachItemHotbar:new(character, item) +-- local action = og_ISDetachItemHotbar_new(self, character, item) +-- --action = OverrideAction(action, -1) +-- return action +-- end local og_ISEquipWeaponAction_new = ISEquipWeaponAction.new @@ -63,7 +63,7 @@ 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. + -- TODO Consider other cases where unequipping something should skip TOC. if instanceof(item, 'HandWeapon') then OverrideAction(action, time) end