mirror of
https://github.com/edubart/otclient.git
synced 2025-12-13 12:29:46 +01:00
Added missing protocol versions & made some style fixes.
This commit is contained in:
@@ -433,7 +433,11 @@ function addMenuHook(category, name, callback, condition, shortcut)
|
||||
end
|
||||
|
||||
function removeMenuHook(category, name)
|
||||
hookedMenuOptions[category][name] = nil
|
||||
if not name then
|
||||
hookedMenuOptions[category] = {}
|
||||
else
|
||||
hookedMenuOptions[category][name] = nil
|
||||
end
|
||||
end
|
||||
|
||||
function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
|
||||
|
||||
Reference in New Issue
Block a user