fix messed-up front/back images on kitchen chairs

Signed-off-by: Vanessa Ezekowitz <vanessaezekowitz@gmail.com>
This commit is contained in:
Vanessa Ezekowitz 2014-12-10 13:34:16 -05:00
parent 4de58abc31
commit 3c3aa9e0d0

View File

@ -52,21 +52,22 @@ for i in ipairs(chaircolors) do
local color = "_"..chaircolors[i][1] local color = "_"..chaircolors[i][1]
local color2 = chaircolors[i][1] local color2 = chaircolors[i][1]
local name = S(chaircolors[i][2]) local name = S(chaircolors[i][2])
local chairtiles = {
if chaircolors[i][1] == "" then
color = ""
end
minetest.register_node("homedecor:chair"..color, {
description = S("Kitchen chair (%s)"):format(name),
tiles = {
"forniture_kitchen_chair_top"..color..".png", "forniture_kitchen_chair_top"..color..".png",
"forniture_wood.png", "forniture_wood.png",
"forniture_kitchen_chair_sides"..color..".png", "forniture_kitchen_chair_sides"..color..".png",
"forniture_kitchen_chair_sides"..color..".png^[transformFX", "forniture_kitchen_chair_sides"..color..".png^[transformFX",
"forniture_kitchen_chair_sides"..color..".png", "forniture_kitchen_chair_back"..color..".png",
"forniture_kitchen_chair_sides"..color..".png^[transformFX", "forniture_kitchen_chair_front"..color..".png",
}, }
if chaircolors[i][1] == "" then
color = ""
chairtiles = { "forniture_wood.png" }
end
minetest.register_node("homedecor:chair"..color, {
description = S("Kitchen chair (%s)"):format(name),
tiles = chairtiles,
drawtype = "nodebox", drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",