forked from nalc/homedecor_modpack
Fix wrong nodenames caused by last commit (#61)
This commit is contained in:
parent
80b4f242e0
commit
46c71131c5
|
@ -43,13 +43,13 @@ homedecor.register("ceiling_tile", {
|
||||||
})
|
})
|
||||||
|
|
||||||
local rug_types = {
|
local rug_types = {
|
||||||
{ S("small"), "homedecor_small_rug.obj" },
|
{ "small", S("small"), "homedecor_small_rug.obj" },
|
||||||
{ S("large"), homedecor.box.slab_y(0.0625) },
|
{ "large", S("large"), homedecor.box.slab_y(0.0625) },
|
||||||
{ S("persian"), homedecor.box.slab_y(0.0625) },
|
{ "persian", S("persian"), homedecor.box.slab_y(0.0625) },
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, rt in ipairs(rug_types) do
|
for _, rt in ipairs(rug_types) do
|
||||||
local s, m = unpack(rt)
|
local s, desc, m = unpack(rt)
|
||||||
|
|
||||||
local mesh = m
|
local mesh = m
|
||||||
local nodebox = nil
|
local nodebox = nil
|
||||||
|
@ -69,7 +69,7 @@ for _, rt in ipairs(rug_types) do
|
||||||
end
|
end
|
||||||
|
|
||||||
homedecor.register("rug_"..s, {
|
homedecor.register("rug_"..s, {
|
||||||
description = S("Rug (@1)", s),
|
description = S("Rug (@1)", desc),
|
||||||
mesh = mesh,
|
mesh = mesh,
|
||||||
tiles = tiles,
|
tiles = tiles,
|
||||||
node_box = nodebox,
|
node_box = nodebox,
|
||||||
|
@ -83,11 +83,17 @@ for _, rt in ipairs(rug_types) do
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
local pot_colors = { S("black"), S("green"), S("terracotta") }
|
local pot_colors = {
|
||||||
|
{ "black", S("black") },
|
||||||
|
{ "green", S("green") },
|
||||||
|
{ "terracotta", S("terracotta") },
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, pot in ipairs(pot_colors) do
|
||||||
|
local p, desc = unpack(pot)
|
||||||
|
|
||||||
for _, p in ipairs(pot_colors) do
|
|
||||||
homedecor.register("flower_pot_"..p, {
|
homedecor.register("flower_pot_"..p, {
|
||||||
description = S("Flower Pot (@1)", p),
|
description = S("Flower Pot (@1)", desc),
|
||||||
mesh = "homedecor_flowerpot.obj",
|
mesh = "homedecor_flowerpot.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_flower_pot_"..p..".png",
|
"homedecor_flower_pot_"..p..".png",
|
||||||
|
@ -99,6 +105,7 @@ homedecor.register("flower_pot_"..p, {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("flowers") then
|
if minetest.get_modpath("flowers") then
|
||||||
local flowers_list = {
|
local flowers_list = {
|
||||||
{ S("Rose"), "rose", "flowers:rose" },
|
{ S("Rose"), "rose", "flowers:rose" },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user