ObjectClickhandler with limitations

This commit is contained in:
ZioPao
2024-03-21 20:07:34 +01:00
parent 1c990f3b9b
commit cc3ee9495c
2 changed files with 15 additions and 17 deletions

View File

@@ -266,14 +266,3 @@ function ISWorldObjectContextMenu.createMenu(player, worldobjects, x, y, test)
end
local og_ISOpenCloseDoor_perform = ISOpenCloseDoor.perform
function ISOpenCloseDoor:perform()
if CachedDataHandler.GetBothHandsFeasibility() then
og_ISOpenCloseDoor_perform(self)
else
--getCore():getKey("Interact")
ISBaseTimedAction.perform(self)
end
end