From f98371089930b0a6076b30d105f1cf6a29d3e71c Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 18 Oct 2018 07:17:08 -0400 Subject: [PATCH] reduce light output of small lattice cube lantern (especially if it comes from a darkage:lamp) --- homedecor/lighting.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 965912be..ddd0e446 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -360,8 +360,11 @@ homedecor.register("ceiling_lantern", { walkable = false }) +local sm_light = default.LIGHT_MAX-2 + if minetest.get_modpath("darkage") then minetest.register_alias("homedecor:lattice_lantern_large", "darkage:lamp") + sm_light = default.LIGHT_MAX-5 else homedecor.register("lattice_lantern_large", { description = S("Lattice lantern (large)"), @@ -388,7 +391,7 @@ homedecor.register("lattice_lantern_small", { fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } }, groups = { snappy = 3 }, - light_source = default.LIGHT_MAX-1, + light_source = sm_light, sounds = default.node_sound_glass_defaults(), on_place = minetest.rotate_node })