Changed on_event(-2) to on_load

This commit is contained in:
Cooldude2606
2018-10-27 19:56:59 +01:00
parent b601664526
commit 218d700aba

View File

@@ -488,7 +488,7 @@ script.on_event(defines.events.on_tick,function(event)
end
end)
script.on_event(-2,function(event)
script.on_load(function(event)
-- sets up metatable again so that threads contiune to work
for uuid,thread in pairs(Server.threads) do
setmetatable(thread,{__index=Server._thread})