Closed cubbie closed 2 years ago
if container:hasPages() then
table.insert(lootContainers, container)
elseif container:getItemsCount() < container:getCapacity() or container:hasPages() then
table.insert(lootContainers, container)
you are double checking if container has pages and in both cases containre is added to lootContainers - it doesnt make much sense tbh
move to index 1 if container has pages - does it makes any difference? feel free to contact me on discord to discuss this Vithrax#5814
I was running into a problem with looting into containers that are paged/infinite space. Lazily just placed move into to first slot and it worked.