diff --git a/src/database/items.lua b/src/database/items.lua index 36edd04..548a8fd 100644 --- a/src/database/items.lua +++ b/src/database/items.lua @@ -44,12 +44,12 @@ local function _itemData() polarStar1 = { name = "Polar Star", script = " 0, "No available locations!") + assert(#fillable > 0, ("No available locations for %s! Items left: %d"):format(item.name, #itemsLeft)) assert(item ~= nil, "No item found!") + logDebug(("Placing %s at %s"):format(item.name, fillable[1].name)) fillable[1]:setItem(item) - end + until #itemsLeft == 0 end function C:_fastFillItems(items, locations)