mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-08-25 05:17:08 -04:00
Set dungeon_loot as optional dependency
This commit is contained in:
parent
90b210143d
commit
8bbd2e0c46
8 changed files with 12 additions and 8 deletions
|
@ -226,7 +226,7 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
-- Register buckets as dungeon loot
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
if minetest.global_exists("dungeon_loot") and dungeon_loot.register then
|
||||
dungeon_loot.register({
|
||||
{name = "bucket:bucket_empty", chance = 0.55},
|
||||
-- water in deserts/ice or above ground, lava otherwise
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name = bucket
|
||||
description = Minetest Game mod: bucket
|
||||
depends = default, dungeon_loot
|
||||
depends = default
|
||||
optional_depends = dungeon_loot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue