diff options
Diffstat (limited to 'homedecor/lighting.lua')
-rw-r--r-- | homedecor/lighting.lua | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index f7314d0..62a88a9 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -1,13 +1,7 @@ -- This file supplies glowlights -local dirs2 = { 9, 18, 7, 12 } - local S = homedecor_i18n.gettext -local function N_(x) return x end - -local colors = { N_("yellow"), N_("white") } - local glowlight_nodebox = { half = homedecor.nodebox.slab_y(1/2), quarter = homedecor.nodebox.slab_y(1/4), @@ -563,7 +557,7 @@ end minetest.register_lbm({ name = "homedecor:convert_lighting", label = "Convert homedecor glowlights, table lamps, and standing lamps to use param2 color", - run_at_every_load = true, + run_at_every_load = false, nodenames = homedecor.old_static_nodes, action = function(pos, node) local name = node.name @@ -579,7 +573,7 @@ minetest.register_lbm({ end local lampname - if string.find(name, "standing_lamp") then + if string.find(name, "standing_lamp") then lampname = "homedecor:standing_lamp" elseif string.find(name, "table_lamp") then lampname = "homedecor:table_lamp" @@ -617,7 +611,6 @@ minetest.register_lbm({ local paletteidx, _ = unifieddyes.getpaletteidx("unifieddyes:"..color, false) - local old_node = node.name local old_fdir local new_node = newname local new_fdir = 1 @@ -664,11 +657,10 @@ homedecor.old_static_desk_lamps = { minetest.register_lbm({ name = "homedecor:convert_desk_lamps", label = "Convert homedecor desk lamps to use param2 color", - run_at_every_load = true, + run_at_every_load = false, nodenames = homedecor.old_static_desk_lamps, action = function(pos, node) local name = node.name - local newname local color = string.sub(name, string.find(name, "_", -8) + 1) if color == "green" then |