From 4622d25e76684b36b9c187104b46168fb8bb481f Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 26 Jan 2017 19:02:55 -0500 Subject: [PATCH] fix wrong param2 setting --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 68dbd6f..b5fb00d 100644 --- a/init.lua +++ b/init.lua @@ -280,9 +280,9 @@ function unifieddyes.on_rightclick(pos, node, player, stack, pointed_thing, newn newnode = string.gsub(newnode, "_grey", "_"..HUES[hue]) end end + node.param2 = paletteidx + (minetest.get_node(pos).param2 % 32) end node.name = newnode - node.param2 = paletteidx + (minetest.get_node(pos).param2 % 32) minetest.swap_node(pos, node) 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.