summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index e874320..adf2474 100644
--- a/init.lua
+++ b/init.lua
@@ -254,16 +254,12 @@ end
function unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
local prevdye
- print(dump(oldmetadata))
-
if oldmetadata and oldmetadata.fields then
prevdye = oldmetadata.fields.dye
end
local inv = digger:get_inventory()
- print(dump(prevdye))
-
if prevdye and not (inv:contains_item("main", prevdye) and creative_mode) and minetest.registered_items[prevdye] then
if inv:room_for_item("main", prevdye) then
inv:add_item("main", prevdye)