Mark the node via its metadata if it's been painted with 256-color palette

This commit is contained in:
Vanessa Ezekowitz 2017-02-24 19:21:15 -05:00
parent cf89bc6a24
commit e0c87656ed

@ -626,6 +626,9 @@ function unifieddyes.on_use(itemstack, player, pointed_thing)
end end
node.name = newnode node.name = newnode
minetest.swap_node(pos, node) minetest.swap_node(pos, node)
if palette_type == "extended" then
meta:set_string("palette", "ext")
end
if not creative_mode then if not creative_mode then
return itemstack return itemstack
end end
@ -648,6 +651,9 @@ function unifieddyes.on_use(itemstack, player, pointed_thing)
newnode.param2 = paletteidx newnode.param2 = paletteidx
end end
minetest.swap_node(pos, newnode) minetest.swap_node(pos, newnode)
if palette_type == "extended" then
meta:set_string("palette", "ext")
end
if not creative_mode then if not creative_mode then
return itemstack return itemstack
end end