mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Remove unrequired for loop
This commit is contained in:
parent
46e4c7be12
commit
90b210143d
3 changed files with 7 additions and 10 deletions
|
@ -227,7 +227,7 @@ minetest.register_craft({
|
|||
|
||||
-- Register buckets as dungeon loot
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
local loot_list = {
|
||||
dungeon_loot.register({
|
||||
{name = "bucket:bucket_empty", chance = 0.55},
|
||||
-- water in deserts/ice or above ground, lava otherwise
|
||||
{name = "bucket:bucket_water", chance = 0.45,
|
||||
|
@ -236,8 +236,5 @@ if dungeon_loot and dungeon_loot.register then
|
|||
types = {"normal"}},
|
||||
{name = "bucket:bucket_lava", chance = 0.45, y = {-32768, -1},
|
||||
types = {"normal"}},
|
||||
}
|
||||
for _,loot in pairs(loot_list) do
|
||||
dungeon_loot.register(loot)
|
||||
end
|
||||
})
|
||||
end
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
-- Loot from the `default` mod is registered here,
|
||||
-- with the rest being registered in the respective mods
|
||||
|
||||
dungeon_loot.registered_loot = {
|
||||
-- various items
|
||||
{name = "default:stick", chance = 0.6, count = {3, 6}},
|
||||
|
|
|
@ -147,13 +147,10 @@ minetest.register_craft({
|
|||
|
||||
-- Register farming items as dungeon loot
|
||||
if dungeon_loot and dungeon_loot.register then
|
||||
local loot_list = {
|
||||
dungeon_loot.register({
|
||||
{name = "farming:string", chance = 0.5, count = {1, 8}},
|
||||
{name = "farming:wheat", chance = 0.5, count = {2, 5}},
|
||||
{name = "farming:seed_cotton", chance = 0.4, count = {1, 4},
|
||||
types = {"normal"}},
|
||||
}
|
||||
for _,loot in pairs(loot_list) do
|
||||
dungeon_loot.register(loot)
|
||||
end
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue