Replace string

This commit is contained in:
Robin Hüskes 2022-12-03 22:47:41 +01:00
parent 458b011c2b
commit c3c0a92463
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ local function OnEvent(lib, self, event, ...)
end
end
function child.events:PLAYER_ENTERING_WORLD(event)
child:UnregisterEvent('PLAYER_ENTERING_WORLD')
child:UnregisterEvent(event)
local list = {}
for event,func in pairs(events) do
if(child:IsClassic() or (not child:IsClassic() and not skipRetail[event])) then