mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-16 08:24:52 +09:00
Switch to sp/mp init events (#404)
This commit is contained in:
1 parent
82c2c7f23c
commit
8bcb65101b
7 files changed
+15
-23
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user