1
0
зеркало из https://github.com/mt-mods/unifieddyes.git synced 2025-10-16 01:55:35 +02:00

handle both cases of nodes being set with facedir

Этот коммит содержится в:
Vanessa Ezekowitz
2017-01-26 15:49:06 -05:00
родитель 2959698111
Коммит 3e93c10cfd

Просмотреть файл

@@ -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.