Switch to sp/mp init events (#404)

This commit is contained in:
Cooldude2606
2025-08-30 20:39:54 +01:00
committed by GitHub
parent 82c2c7f23c
commit 8bcb65101b
7 changed files with 15 additions and 23 deletions

View File

@@ -1,4 +1,3 @@
local Clustorio = require("modules/clusterio/api")
local ExpUtil = require("modules/exp_util")
local Event = {
@@ -66,7 +65,8 @@ function Event.on_init(handler)
end
handlers[#handlers + 1] = handler
Event.add(Clustorio.events.on_server_startup, handler)
Event.add(defines.events.on_singleplayer_init, handler)
Event.add(defines.events.on_multiplayer_init, handler)
end
function Event.on_load(handler)