mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 15:33:52 +01:00
fix greys in palette conversion table
This commit is contained in:
parent
fbe762cf19
commit
d2819353c2
14
init.lua
14
init.lua
@ -663,7 +663,14 @@ end
|
||||
|
||||
-- build a table to convert from classic/89-color palette to extended palette
|
||||
|
||||
unifieddyes.convert_classic_palette = {}
|
||||
-- the first five entries are for the old greyscale - white, light, grey, dark, black
|
||||
unifieddyes.convert_classic_palette = {
|
||||
240,
|
||||
244,
|
||||
247,
|
||||
251,
|
||||
253
|
||||
}
|
||||
|
||||
for hue = 0, 11 do
|
||||
-- light
|
||||
@ -678,11 +685,6 @@ for hue = 0, 11 do
|
||||
end
|
||||
end
|
||||
|
||||
for grey = 0, 4 do
|
||||
local paletteidx = unifieddyes.getpaletteidx("dye:"..GREYS[grey+1], false)
|
||||
unifieddyes.convert_classic_palette[paletteidx] = 240 + grey
|
||||
end
|
||||
|
||||
-- Generate all dyes that are not part of the default minetest_game dyes mod
|
||||
|
||||
for _, h in ipairs(HUES_EXTENDED) do
|
||||
|
Loading…
Reference in New Issue
Block a user