mirror of
https://github.com/mt-mods/coloredwood.git
synced 2024-11-15 23:20:20 +01:00
use official Unified Dyes hue+grey table, not local copies
This commit is contained in:
parent
3b60c6eeee
commit
34de518802
25
init.lua
25
init.lua
|
@ -22,29 +22,6 @@ if minetest.settings:get_bool("coloredwood_enable_stairsplus") == false or not m
|
|||
coloredwood.enable_stairsplus = false
|
||||
end
|
||||
|
||||
coloredwood.hues = {
|
||||
"red",
|
||||
"orange",
|
||||
"yellow",
|
||||
"lime",
|
||||
"green",
|
||||
"aqua",
|
||||
"cyan",
|
||||
"skyblue",
|
||||
"blue",
|
||||
"violet",
|
||||
"magenta",
|
||||
"redviolet"
|
||||
}
|
||||
|
||||
coloredwood.hues_plus_greys = {}
|
||||
|
||||
for _, hue in ipairs(coloredwood.hues) do
|
||||
table.insert(coloredwood.hues_plus_greys, hue)
|
||||
end
|
||||
|
||||
table.insert(coloredwood.hues_plus_greys, "grey")
|
||||
|
||||
-- helper functions
|
||||
|
||||
local function is_stairsplus(name, colorized)
|
||||
|
@ -94,7 +71,7 @@ minetest.register_node("coloredwood:wood_block", {
|
|||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
for _, color in ipairs(coloredwood.hues_plus_greys) do
|
||||
for _, color in ipairs(unifieddyes.HUES_WITH_GREY) do
|
||||
|
||||
-- moreblocks/stairsplus support
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user