mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-10 20:20:26 +01:00
fix messed-up grayscale color select logic
This commit is contained in:
parent
3b942c352f
commit
1b0e384278
12
init.lua
12
init.lua
|
@ -208,14 +208,24 @@ function unifieddyes.getpaletteidx(color, is_color_fdir)
|
||||||
color = aliases[color] or color
|
color = aliases[color] or color
|
||||||
local idx
|
local idx
|
||||||
|
|
||||||
|
print("unified dyes says color = "..color)
|
||||||
|
|
||||||
if is_color_fdir == "wallmounted" then
|
if is_color_fdir == "wallmounted" then
|
||||||
|
print("is wallmounted")
|
||||||
if grayscale_wallmounted[color] then
|
if grayscale_wallmounted[color] then
|
||||||
|
print("is in grayscale_wallmounted[]")
|
||||||
return (grayscale_wallmounted[color] * 64), 0
|
return (grayscale_wallmounted[color] * 64), 0
|
||||||
end
|
end
|
||||||
elseif is_color_fdir then
|
elseif is_color_fdir then
|
||||||
|
print("is_color_fdir")
|
||||||
if grayscale[color] then
|
if grayscale[color] then
|
||||||
|
print("is in grayscale[]")
|
||||||
return (grayscale[color] * 32), 0
|
return (grayscale[color] * 32), 0
|
||||||
else
|
end
|
||||||
|
else
|
||||||
|
print("is not color fdir")
|
||||||
|
if grayscale[color] then
|
||||||
|
print("is in grayscale[]")
|
||||||
return grayscale[color], 0
|
return grayscale[color], 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user