diff --git a/core.lua b/core.lua index 276bdcb..bebf114 100755 --- a/core.lua +++ b/core.lua @@ -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