mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 00:40:42 +09:00
Migrate all commands to new lib
This commit is contained in:
103 files changed
+2415
-3694
No files matched your search
@@ -42,6 +42,7 @@ end
|
||||
|
||||
Event.add(defines.events.on_player_created, function(event)
|
||||
local player = game.players[event.player_index]
|
||||
--- @diagnostic disable-next-line param-type-mismatch
|
||||
util.insert_safe(player, global.created_items)
|
||||
|
||||
local r = global.chart_distance or 200
|
||||
@@ -65,6 +66,7 @@ end)
|
||||
|
||||
Event.add(defines.events.on_player_respawned, function(event)
|
||||
local player = game.players[event.player_index]
|
||||
--- @diagnostic disable-next-line param-type-mismatch
|
||||
util.insert_safe(player, global.respawn_items)
|
||||
if use_silo_script then
|
||||
silo_script.on_event(event)
|
||||
|
||||
Reference in new issue
Block a user