1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2024-12-25 02:00:27 +01:00

remove debug statements

This commit is contained in:
Vanessa Ezekowitz 2017-01-26 14:21:54 -05:00
parent b42376ba3d
commit 2959698111

View File

@ -286,9 +286,6 @@ function unifieddyes.on_rightclick(pos, node, player, stack, pointed_thing, newn
else -- this path is used when you're just painting an existing node, rather than replacing one. else -- this path is used when you're just painting an existing node, rather than replacing one.
newnode = oldnode -- note that here, newnode/oldnode are a full node, not just the name. newnode = oldnode -- note that here, newnode/oldnode are a full node, not just the name.
if colorfdir then if colorfdir then
print("prevdye = "..dump(prevdye))
print("hue = "..dump(hue).." "..dump(HUES[hue]))
print("newnode.name = "..newnode.name)
if oldhue then if oldhue then
if hue ~= 0 then if hue ~= 0 then
newnode.name = string.gsub(newnode.name, "_"..oldhue, "_"..HUES[hue]) newnode.name = string.gsub(newnode.name, "_"..oldhue, "_"..HUES[hue])
@ -307,7 +304,6 @@ function unifieddyes.on_rightclick(pos, node, player, stack, pointed_thing, newn
minetest.registered_nodes[name] then minetest.registered_nodes[name] then
local placeable_node = minetest.registered_nodes[stack:get_name()] local placeable_node = minetest.registered_nodes[stack:get_name()]
minetest.set_node(pos2, placeable_node) minetest.set_node(pos2, placeable_node)
print(minetest.get_node(pos).name)
stack:take_item() stack:take_item()
return stack return stack
end end