Skip to content

Commit

Permalink
Merge pull request #256 from Oarcinae/fix_2.1.10_missing_radius_mod
Browse files Browse the repository at this point in the history
Fix missing migrations for other planet configs.
  • Loading branch information
Oarcinae authored Nov 12, 2024
2 parents 5a74e87 + 705349f commit 3c23211
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.11
Date: 2024-11-12
Bugfixes:
- Fixes a crash due to a migration issue if spawns were allowed on not-yet-supported planets.
---------------------------------------------------------------------------------------------------
Version: 2.1.10
Date: 2024-11-11
Major Features:
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oarc-mod",
"version": "2.1.10",
"version": "2.1.11",
"factorio_version": "2.0",
"title": "Oarc Multiplayer Spawn",
"author": "Oarcinae",
Expand Down
20 changes: 20 additions & 0 deletions migrations/oarc-mod-v2.1.11.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- For non-supported surfaces, make sure they have the default settings.
if storage.ocfg.surfaces_config["aquilo"].spawn_config.fill_tile == nil then
storage.ocfg.surfaces_config["aquilo"] = {
spawn_config = NAUVIS_SPAWN_CONFIG,
starting_items = NAUVIS_STARTER_ITEMS
}
end
if storage.ocfg.surfaces_config["vulcanus"].spawn_config.fill_tile == nil then
storage.ocfg.surfaces_config["vulcanus"] = {
spawn_config = NAUVIS_SPAWN_CONFIG,
starting_items = NAUVIS_STARTER_ITEMS
}
end
if storage.ocfg.surfaces_config["gleba"].spawn_config.fill_tile == nil then
storage.ocfg.surfaces_config["gleba"] = {
spawn_config = NAUVIS_SPAWN_CONFIG,
starting_items = NAUVIS_STARTER_ITEMS
}
end
log("Updating non-supported surfaces with default nauvis spawn_config and starting_items.")

0 comments on commit 3c23211

Please sign in to comment.