I've tried this:
Code: Select all
data.raw["autoplace-control"]["coal"] = nil
I've also tried this:
Code: Select all
for i = #data.raw["autoplace-control"], 1, -1 do
if data.raw["autoplace-control"][i]["name"] == "coal" then
table.remove(data.raw["autoplace-control"],i)
end
end
Thanks