mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Update changelog
This commit is contained in:
4 files changed
+9
-5
No files matched your search
@@ -359,9 +359,9 @@ end
|
||||
|
||||
-- Upload inventory when a player leaves the game. Triggers on restart after crash if player was online during crash.
|
||||
inventory_sync.events[defines.events.on_pre_player_left_game] = function(event)
|
||||
-- for some reason, on_pre_player_left_game gets called before on_server_startup so global isn't ready yet
|
||||
-- for some reason, on_pre_player_left_game gets called before on_server_startup so script_data isn't ready yet
|
||||
if not compat.script_data().inventory_sync then
|
||||
log("ERROR: Global inventory sync not defined")
|
||||
log("ERROR: script data for inventory sync is not defined")
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user