remove some debug statements

This commit is contained in:
Vanessa Ezekowitz 2017-01-28 21:57:14 -05:00
parent 8ea8b01dcc
commit 3b942c352f

@ -254,16 +254,12 @@ end
function unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger) function unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger)
local prevdye local prevdye
print(dump(oldmetadata))
if oldmetadata and oldmetadata.fields then if oldmetadata and oldmetadata.fields then
prevdye = oldmetadata.fields.dye prevdye = oldmetadata.fields.dye
end end
local inv = digger:get_inventory() 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 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 if inv:room_for_item("main", prevdye) then
inv:add_item("main", prevdye) inv:add_item("main", prevdye)