Cleanup code

This commit is contained in:
Robin Hüskes 2022-12-03 23:38:46 +01:00
parent a07944dbb1
commit 24456c952b
1 changed files with 2 additions and 2 deletions

View File

@ -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