forked from mtcontrib/plantlife_modpack
Reduce usage of debug print
statements for no good reason (console floods)
This commit is contained in:
parent
b0f742e5c1
commit
1ccfeb6214
@ -31,20 +31,14 @@ abstract_ferns.grow_tree_fern = function(pos)
|
|||||||
local i = 1
|
local i = 1
|
||||||
local brk = false
|
local brk = false
|
||||||
while (i < size) do
|
while (i < size) do
|
||||||
print(minetest.get_node({x = pos.x, y = pos.y + i, z = pos.z}).name)
|
|
||||||
if minetest.get_node({x = pos.x, y = pos.y + i, z = pos.z}).name ~= "air" then
|
if minetest.get_node({x = pos.x, y = pos.y + i, z = pos.z}).name ~= "air" then
|
||||||
brk = true
|
brk = true
|
||||||
print("break!")
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
print("set trunk node at:")
|
|
||||||
print(dump({x = pos.x, y = pos.y + i, z = pos.z}))
|
|
||||||
minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, { name = "ferns:fern_trunk" })
|
minetest.set_node({x = pos.x, y = pos.y + i, z = pos.z}, { name = "ferns:fern_trunk" })
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
if not brk then
|
if not brk then
|
||||||
print("set crown node at:")
|
|
||||||
print(dump({x = pos.x, y = pos.y + i, z = pos.z}))
|
|
||||||
minetest.set_node({x = pos.x, y = pos.y + i - 1, z = pos.z}, { name = crown })
|
minetest.set_node({x = pos.x, y = pos.y + i - 1, z = pos.z}, { name = crown })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -361,7 +361,7 @@ for i in pairs(TRuNKS) do
|
|||||||
})
|
})
|
||||||
|
|
||||||
else
|
else
|
||||||
print(string.format("[Trunks] warning: tree type '%s:%s' not found", MoD, TRuNK))
|
minetest.log("error", string.format("[Trunks] warning: tree type '%s:%s' not found", MoD, TRuNK))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user