From 141779c367c47d1cafe71b588ab33426efdc1280 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 20 Jun 2020 19:35:04 +0200 Subject: [PATCH] Remove two useless debug lines --- mods/trees/registration.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/mods/trees/registration.lua b/mods/trees/registration.lua index dd9dd70..dd80a21 100644 --- a/mods/trees/registration.lua +++ b/mods/trees/registration.lua @@ -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))