fix crash in lamps

这个提交包含在:
Vanessa Ezekowitz
2014-09-20 19:30:35 -04:00
父节点 5c07015447
当前提交 af3b4780d4

查看文件

@@ -179,7 +179,6 @@ local function reg_lamp(suffix, nxt, desc, tilesuffix, light, color)
if lampcolor == "" then
minetest.register_alias("3dforniture:table_lamp_"..suffix, "homedecor:table_lamp_"..suffix)
end
end
minetest.register_node("homedecor:standing_lamp_bottom"..lampcolor.."_"..suffix, {
description = S(desc),
@@ -249,6 +248,7 @@ end
end,
drop = "homedecor:standing_lamp_bottom"..lampcolor.."_off"
})
end
for _, color in ipairs(lamp_colors) do
reg_lamp("off", "low", "Table Lamp", "", nil, color )