wool: use global 'dye.dyes' table 2370/head
authorZweihorn <4863737+Zweihorn@users.noreply.github.com>
Sun, 26 May 2019 19:21:31 +0000 (21:21 +0200)
committerParamat <paramat@users.noreply.github.com>
Sun, 26 May 2019 19:21:31 +0000 (20:21 +0100)
mods/wool/depends.txt
mods/wool/init.lua

index 4ad96d51599fb734101f6229f6c1a8a509bd6255..2717befbefcdb10028b72fda33d36d40d2b8357f 100644 (file)
@@ -1 +1,2 @@
 default
+dye
index 3e565a47d5d32447c813e1f4275943fd83d8a097..d10074a1e891ccd97e5f5b1e51a7b21832f9ae6c 100644 (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])