fix(client/interface): allow reregistering list menus

This commit is contained in:
Luke
2022-08-02 12:20:08 +02:00
committed by Luke
parent 33bd3ebc77
commit dde7daddb7

View File

@@ -3,7 +3,7 @@ local openMenu = nil
function lib.registerMenu(data, cb) function lib.registerMenu(data, cb)
data.cb = cb data.cb = cb
if not registeredMenus[data.id] then registeredMenus[data.id] = data end registeredMenus[data.id] = data
end end
function lib.showMenu(id) function lib.showMenu(id)