aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-07-02 00:34:51 +0000
committerPilzAdam <pilzadam@minetest.net>2013-07-02 00:34:59 +0000
commitcaf0b67e47fd4c6b2a2bc61c36010e2adf9db388 (patch)
tree9a1f10f662e3f6842c8348101d9184f6bbdf1fa8 /builtin
parent90b095aa54b5a96b1100966adc0f083e9cb5409d (diff)
downloadminetest-caf0b67e47fd4c6b2a2bc61c36010e2adf9db388.tar.gz
minetest-caf0b67e47fd4c6b2a2bc61c36010e2adf9db388.tar.bz2
minetest-caf0b67e47fd4c6b2a2bc61c36010e2adf9db388.zip
Remove unnecessary debug output in node_dig()
Diffstat (limited to 'builtin')
-rw-r--r--builtin/item.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin/item.lua b/builtin/item.lua
index 799e46f73..b8381515a 100644
--- a/builtin/item.lua
+++ b/builtin/item.lua
@@ -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))