forked from nalc/homedecor_modpack
Fix improper use of translation code in curtains
possible side effect: Some users may have unknown nodes because they were being registered wrong to begin with.
This commit is contained in:
parent
0063598f22
commit
e3de39bd05
@ -196,10 +196,11 @@ local curtaincolors = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for c in ipairs(curtaincolors) do
|
for c in ipairs(curtaincolors) do
|
||||||
local color = S(curtaincolors[c])
|
local color = curtaincolors[c]
|
||||||
|
local color_d = S(curtaincolors[c])
|
||||||
|
|
||||||
minetest.register_node("homedecor:curtain_"..color, {
|
minetest.register_node("homedecor:curtain_"..color, {
|
||||||
description = S("Curtains (%s)"):format(color),
|
description = S("Curtains (%s)"):format(color_d),
|
||||||
tiles = { "homedecor_curtain_"..color..".png" },
|
tiles = { "homedecor_curtain_"..color..".png" },
|
||||||
inventory_image = "homedecor_curtain_"..color..".png",
|
inventory_image = "homedecor_curtain_"..color..".png",
|
||||||
wield_image = "homedecor_curtain_"..color..".png",
|
wield_image = "homedecor_curtain_"..color..".png",
|
||||||
@ -215,7 +216,8 @@ minetest.register_node("homedecor:curtain_"..color, {
|
|||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
--wall_side = = <default>
|
--wall_side = = <default>
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_alias("homedecor:curtain_"..color_d, "homedecor:curtain_"..color)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user