Cleanup code
This commit is contained in:
parent
a07944dbb1
commit
24456c952b
4
core.lua
4
core.lua
|
@ -99,11 +99,11 @@ local function OnEvent(lib, self, event, ...)
|
|||
print("[itemsdb] Failed", ...)
|
||||
end
|
||||
end
|
||||
function child.events:PLAYER_ENTERING_WORLD(event)
|
||||
function child.events:PLAYER_ENTERING_WORLD(lib, event)
|
||||
child:UnregisterEvent(event)
|
||||
local list = {}
|
||||
for event,func in pairs(events) do
|
||||
if(child:IsClassic() or (not child:IsClassic() and not skipRetail[event])) then
|
||||
if(not skipRetail[event]) then
|
||||
list[#list+1] = event
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue