diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2017-12-11 15:09:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 15:09:20 -0500 |
commit | 0d654eafecd07f4adcf5ec38893591e116fb007a (patch) | |
tree | 2f8ee0db1156c7fba7ca089af3b10e804dc2d682 | |
parent | 3c8b698e8ea29dacd898811182fc20cc8b76e37d (diff) | |
parent | 5dc464a4b22d318a5dd526453ec6ea55e906f645 (diff) | |
download | unifieddyes-0d654eafecd07f4adcf5ec38893591e116fb007a.tar unifieddyes-0d654eafecd07f4adcf5ec38893591e116fb007a.tar.gz unifieddyes-0d654eafecd07f4adcf5ec38893591e116fb007a.tar.bz2 unifieddyes-0d654eafecd07f4adcf5ec38893591e116fb007a.tar.xz unifieddyes-0d654eafecd07f4adcf5ec38893591e116fb007a.zip |
Merge pull request #21 from Jat15/patch-2
Fix grayscale with 89-color palette
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -179,7 +179,7 @@ function unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing) end local paletteidx, hue = unifieddyes.getpaletteidx(lastdye, palette_type) - if palette_type == true then newname = string.gsub(newname, "_grey", "_"..unifieddyes.HUES[hue]) end + if palette_type == true and hue ~= 0 then newname = string.gsub(newname, "_grey", "_"..unifieddyes.HUES[hue]) end minetest.set_node(pos, { name = newname, param2 = oldfdir + paletteidx }) |