local tile_whitelist= {"grass","dirt","landfill"} -- this should find any tile that has grass or dirt in the name, so "grass", "grass-dry" and "dirt-dark" etc.
local tile_whitelist= {"grass","dirt","landfill"} -- this should find any tile that has grass or dirt in the name, so "grass", "grass-dry" and "dirt-dark" etc.
local tree_names = {
local tree_names = {
"tree-01",
"tree-01",
"tree-02",
"tree-02",
"tree-02-red",
"tree-02-red",
"tree-03",
"tree-03",
"tree-04",
"tree-04",
"tree-05",
"tree-05",
"tree-06",
"tree-06",
"tree-06-brown",
"tree-06-brown",
"tree-07",
"tree-07",
"tree-08",
"tree-08",
"tree-08-brown",
"tree-08-brown",
"tree-08-red",
"tree-08-red",
"tree-09",
"tree-09",
"tree-09-brown",
"tree-09-brown",
"tree-09-red"
"tree-09-red"
}
}
local function fmod(a,m)
local function fmod(a,m)
return a - math.floor(a / m) * m
return a - math.floor(a / m) * m
end
end
local function log(msg)
local function log(msg)
if enable_debug_window then
if enable_debug_window then
print("NaturalTree mod:" .. msg)
print("NaturalTree mod:" .. msg)
end
end
end
end
-- Pollution was too high to spawn a tree at thepos, so kill up to 3 surrounding trees
-- Pollution was too high to spawn a tree at thepos, so kill up to 3 surrounding trees