Fixed purple glass recipe

This commit is contained in:
ezhh 2016-12-04 12:20:36 +00:00
parent b7118388df
commit fe93df7f2b

@ -38,17 +38,25 @@ end
-- undecorated coloured glass recipes -- undecorated coloured glass recipes
-- this has to be kept in sync with init.lua one -- this has to be kept in sync with init.lua one
local glass_list = { local dye_list = {
"black", "blue", "cyan", "green", "magenta", {"black", "black",},
"orange", "purple", "red", "yellow", {"blue", "blue",},
{"cyan", "cyan",},
{"green", "green",},
{"magenta", "magenta",},
{"orange", "orange",},
{"purple", "violet",},
{"red", "red",},
{"yellow", "yellow",},
} }
for i in ipairs(glass_list) do for i in ipairs(dye_list) do
local name = glass_list[i] local name = dye_list[i][1]
local dye = dye_list[i][2]
minetest.register_craft({ minetest.register_craft({
output = 'abriglass:stained_glass_'..name..' 2', output = 'abriglass:stained_glass_'..name..' 2',
recipe = { recipe = {
{'abriglass:clear_glass', 'dye:'..name, 'abriglass:clear_glass' }, {'abriglass:clear_glass', 'dye:'..dye, 'abriglass:clear_glass' },
} }
}) })