Skip to content

Commit

Permalink
Disable assertion in dungeon_loot
Browse files Browse the repository at this point in the history
  • Loading branch information
MoNTE48 committed Aug 12, 2023
1 parent a37f810 commit 9febb5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/dungeon_loot/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ local function populate_chest(pos, rand, dungeontype)
-- place items at random places in chest
local inv = minetest.get_meta(pos):get_inventory()
local listsz = inv:get_size("main")
assert(listsz >= #items)
-- assert(listsz >= #items)
if (listsz < #items) then return end
for _, item in ipairs(items) do
local index = rand:next(1, listsz)
if inv:get_stack("main", index):is_empty() then
Expand Down

0 comments on commit 9febb5d

Please sign in to comment.