1
0
mirror of https://codeberg.org/minenux/minetest-mod-xdecor synced 2023-10-20 21:43:39 -07:00

Small cleaning on nodes.lua

This commit is contained in:
jp 2015-08-05 20:08:16 +02:00
parent 6231ecaed3
commit 0896285fb7

View File

@ -191,7 +191,7 @@ xdecor.register("cobweb", {
local colors = {"red"} -- Add more curtains colors simply here.
for _, c in ipairs(colors) do
for _, c in pairs(colors) do
xdecor.register("curtain_"..c, {
description = "Curtain ("..c..")",
use_texture_alpha = true,
@ -243,8 +243,7 @@ local door_types = {"woodglass", "japanese"}
for _, d in pairs(door_types) do
doors.register_door("xdecor:"..d.."_door", {
description = string.sub(string.upper(d), 0, 1)..
string.sub(d, 2).." Door",
description = string.gsub(d, "%l", string.upper, 1).." Door",
inventory_image = "xdecor_"..d.."_door_inv.png",
groups = {choppy=3, flammable=2, door=1},
tiles_bottom = {"xdecor_"..d.."_door_b.png", "xdecor_brown.png"},
@ -386,7 +385,7 @@ xdecor.register("lantern", {
local flowerstype = { "dandelion_white", "dandelion_yellow", "geranium",
"rose", "tulip", "viola" }
for _, f in ipairs(flowerstype) do
for _, f in pairs(flowerstype) do
xdecor.register("potted_"..f, {
description = "Potted Flowers ("..f..")",
walkable = false,