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,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
for name, preset in pairs(data.raw["map-gen-presets"].default) do
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