mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 00:14: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
@@ -119,12 +119,10 @@ function Storage.on_init()
|
||||
end
|
||||
end
|
||||
|
||||
local events = {}
|
||||
--- @package
|
||||
Storage.events = {
|
||||
[defines.events.on_multiplayer_init] = Storage.on_init,
|
||||
[defines.events.on_singleplayer_init] = Storage.on_init,
|
||||
}
|
||||
|
||||
local Clustorio = ExpUtil.optional_require("modules/clusterio/api")
|
||||
if Clustorio then
|
||||
events[Clustorio.events.on_server_startup] = Storage.on_init
|
||||
end
|
||||
|
||||
Storage.events = events --- @package
|
||||
return Storage
|
||||
Reference in new issue
Block a user