Remove two useless debug lines

This commit is contained in:
Wuzzy 2020-06-20 19:35:04 +02:00
parent c5e1b269ac
commit 141779c367
1 changed files with 0 additions and 3 deletions

View File

@ -158,12 +158,9 @@ function realtest.register_tree(name, TreeDef)
paramtype = "light",
paramtype2 = "facedir",
on_dig = function(pos, node, digger)
minetest.debug("node_dig")
local def = ItemStack({name=node.name}):get_definition()
-- Check if def ~= 0 because we always want to be able to remove unknown nodes
if #def ~= 0 and not def.diggable or (def.can_dig and not def.can_dig(pos,digger)) and digger:get_wielded_item():get_name() ~= ":" then
minetest.debug("not diggable")
minetest.log("info", digger:get_player_name() .. " tried to dig "
.. node.name .. " which is not diggable "
.. minetest.pos_to_string(pos))