py compat

This commit is contained in:
Brevven 2021-03-18 19:24:11 -07:00
parent 622453e922
commit 0fd8833a2d
3 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,9 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 0.10.4
Date: 2021-03-14
Fixes:
- Fix py/angel/bob compat
---------------------------------------------------------------------------------------------------
Version: 0.10.3 Version: 0.10.3
Date: 2021-03-14 Date: 2021-03-14
Features: Features:

View file

@ -1,6 +1,6 @@
{ {
"name": "bztitanium", "name": "bztitanium",
"version": "0.10.3", "version": "0.10.4",
"factorio_version": "1.1", "factorio_version": "1.1",
"title": "Titanium", "title": "Titanium",
"author": "Brevven", "author": "Brevven",

View file

@ -1,3 +1,4 @@
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
for name, preset in pairs(data.raw["map-gen-presets"].default) do for name, preset in pairs(data.raw["map-gen-presets"].default) do
if type(preset) == "table" and if type(preset) == "table" and
@ -8,3 +9,4 @@ if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
end end
end end
end end
end