Remove unnecessary debug output in node_dig()
authorPilzAdam <pilzadam@minetest.net>
Tue, 2 Jul 2013 00:34:51 +0000 (00:34 +0000)
committerPilzAdam <pilzadam@minetest.net>
Tue, 2 Jul 2013 00:34:59 +0000 (00:34 +0000)
builtin/item.lua

index 799e46f7375cca9fcd1053be7c1a9d5007ab929e..b8381515ac89ecc0a6ca7cc75364f21e9f1aa5da 100644 (file)
@@ -311,12 +311,9 @@ function minetest.handle_node_drops(pos, drops, digger)
 end
 
 function minetest.node_dig(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)) 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))