wool: use global 'dye.dyes' table

This commit is contained in:
Zweihorn 2019-05-26 21:21:31 +02:00 committed by Paramat
parent 80c10cee15
commit 76a08a7058
2 changed files with 2 additions and 17 deletions

View File

@ -1 +1,2 @@
default
dye

View File

@ -1,20 +1,4 @@
local dyes = {
{"white", "White"},
{"grey", "Grey"},
{"black", "Black"},
{"red", "Red"},
{"yellow", "Yellow"},
{"green", "Green"},
{"cyan", "Cyan"},
{"blue", "Blue"},
{"magenta", "Magenta"},
{"orange", "Orange"},
{"violet", "Violet"},
{"brown", "Brown"},
{"pink", "Pink"},
{"dark_grey", "Dark Grey"},
{"dark_green", "Dark Green"},
}
local dyes = dye.dyes
for i = 1, #dyes do
local name, desc = unpack(dyes[i])