Skip to content

Commit

Permalink
wool: use global 'dye.dyes' table
Browse files Browse the repository at this point in the history
  • Loading branch information
Zweihorn authored and paramat committed May 26, 2019
1 parent 80c10ce commit 76a08a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
1 change: 1 addition & 0 deletions mods/wool/depends.txt
@@ -1 +1,2 @@
default
dye
18 changes: 1 addition & 17 deletions mods/wool/init.lua
@@ -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])
Expand Down

0 comments on commit 76a08a7

Please sign in to comment.