From 3e93c10cfda7ce1744a05c3d1ce0815684eb23d5 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 26 Jan 2017 15:49:06 -0500 Subject: handle both cases of nodes being set with facedir --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 25dd455..68dbd6f 100644 --- a/init.lua +++ b/init.lua @@ -282,6 +282,7 @@ function unifieddyes.on_rightclick(pos, node, player, stack, pointed_thing, newn end 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. -- cgit v1.2.3