From 7097ab9f4eff53b4b2022f268471d205a479760c Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Tue, 23 Oct 2018 09:44:13 -0400 Subject: update farmind, homedecor, and unified dyes --- homedecor/lighting.lua | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'homedecor/lighting.lua') diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 9055f23..ddd0e44 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -360,13 +360,20 @@ homedecor.register("ceiling_lantern", { walkable = false }) -homedecor.register("lattice_lantern_large", { - description = S("Lattice lantern (large)"), - tiles = { 'homedecor_lattice_lantern_large.png' }, - groups = { snappy = 3 }, - light_source = default.LIGHT_MAX, - sounds = default.node_sound_glass_defaults(), -}) +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)"), + tiles = { 'homedecor_lattice_lantern_large.png' }, + groups = { snappy = 3 }, + light_source = default.LIGHT_MAX, + sounds = default.node_sound_glass_defaults(), + }) +end homedecor.register("lattice_lantern_small", { description = S("Lattice lantern (small)"), @@ -384,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 }) -- cgit v1.2.3