Reduce usage of debug print statements for no good reason (console floods)

This commit is contained in:
Auke Kok 2018-02-17 16:25:08 -08:00
parent b0f742e5c1
commit 1ccfeb6214
2 changed files with 1 additions and 7 deletions

View File

@ -31,20 +31,14 @@ abstract_ferns.grow_tree_fern = function(pos)
local i = 1
local brk = false
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
brk = true
print("break!")
break
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" })
i = i + 1
end
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 })
end
end

View File

@ -361,7 +361,7 @@ for i in pairs(TRuNKS) do
})
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