get rid of HUES2 table (use string ops to replace it)

This commit is contained in:
Vanessa Ezekowitz 2017-02-24 14:28:38 -05:00
parent 0ceb8f0afe
commit 68f8c18bc3

@ -77,21 +77,6 @@ local GREYS = {
"black" "black"
} }
local HUES2 = {
"Red",
"Orange",
"Yellow",
"Lime",
"Green",
"Aqua",
"Cyan",
"Sky-blue",
"Blue",
"Violet",
"Magenta",
"Red-violet"
}
local default_dyes = { local default_dyes = {
"black", "black",
"blue", "blue",
@ -708,7 +693,13 @@ minetest.register_craft( {
for i = 1, 12 do for i = 1, 12 do
local hue = HUES[i] local hue = HUES[i]
local hue2 = HUES2[i] local hue2 = HUES[i]:gsub("%a", string.upper, 1)
if hue == "skyblue" then
hue2 = "Sky Blue"
elseif hue == "redviolet" then
hue2 = "Red-violet"
end
minetest.register_craft( { minetest.register_craft( {
type = "shapeless", type = "shapeless",