1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-04 09:43:00 +02:00
FactorioScenarioMultiplayer.../migrations/oarc-mod-V2.1.16.lua

10 lines
364 B
Lua

--Fix a missing migration in spawn choices table.
for player_name,entry in pairs(storage.spawn_choices) do
if entry["surface"] ~= nil then
entry.surface_name = entry["surface"]
end
if entry["host"] ~= nil then
entry.host_name = entry["host"]
end
log("Migrated spawn choice entry: "..entry.surface_name.." for "..player_name)
end