mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-17 05:10:25 +02:00
if darkage is also installed,
don't register large homedecor lattice lamp or the recipes to create it or to split it into 8 small lamps. instead, add an alias to darkage:lamp and a recipe to split that.
This commit is contained in:
@ -360,13 +360,17 @@ 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(),
|
||||
})
|
||||
if minetest.get_modpath("darkage") then
|
||||
minetest.register_alias("homedecor:lattice_lantern_large", "darkage:lamp")
|
||||
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)"),
|
||||
|
Reference in New Issue
Block a user