From 76a08a7058429d51bd12e9bf5b1f90c569aff68f Mon Sep 17 00:00:00 2001 From: Zweihorn <4863737+Zweihorn@users.noreply.github.com> Date: Sun, 26 May 2019 21:21:31 +0200 Subject: [PATCH] wool: use global 'dye.dyes' table --- mods/wool/depends.txt | 1 + mods/wool/init.lua | 18 +----------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/mods/wool/depends.txt b/mods/wool/depends.txt index 4ad96d51..2717befb 100644 --- a/mods/wool/depends.txt +++ b/mods/wool/depends.txt @@ -1 +1,2 @@ default +dye diff --git a/mods/wool/init.lua b/mods/wool/init.lua index 3e565a47..d10074a1 100644 --- a/mods/wool/init.lua +++ b/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]) -- 2.25.1