summaryrefslogtreecommitdiff
path: root/homedecor/lighting.lua
diff options
context:
space:
mode:
Diffstat (limited to 'homedecor/lighting.lua')
-rw-r--r--homedecor/lighting.lua23
1 files changed, 15 insertions, 8 deletions
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
})