This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log("omod: "..serpent.block(mods.omod.resource)) | |
for each_ore,_ in pairs(mods.omod.resource) do | |
data.raw.resource[each_ore] = table.deepcopy(mods.omod.resource[each_ore]) | |
data.raw["autoplace-control"][each_ore] = table.deepcopy(mods.omod.autoplace[each_ore]) | |
end | |
for prename,pre in pairs(data.raw["map-gen-presets"]) do | |
if pre.basic_settings then | |
if pre.basic_settings.autoplace_controls then | |
for _,each_ore in pairs(mods.omod.resource) do |