summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-01-26 15:49:06 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-01-26 15:49:06 -0500
commit3e93c10cfda7ce1744a05c3d1ce0815684eb23d5 (patch)
tree8999c4eb630253f6a0cb4d202b8dc37e741114a3
parent2959698111a6d7179676f8b3bdba738bf79b11d8 (diff)
downloadunifieddyes-3e93c10cfda7ce1744a05c3d1ce0815684eb23d5.tar
unifieddyes-3e93c10cfda7ce1744a05c3d1ce0815684eb23d5.tar.gz
unifieddyes-3e93c10cfda7ce1744a05c3d1ce0815684eb23d5.tar.bz2
unifieddyes-3e93c10cfda7ce1744a05c3d1ce0815684eb23d5.tar.xz
unifieddyes-3e93c10cfda7ce1744a05c3d1ce0815684eb23d5.zip
handle both cases of nodes being set with facedir
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
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.