This commit is contained in:
2025-01-08 22:22:21 +09:00
parent ce146be986
commit a6da3a74c2
2 changed files with 2 additions and 2 deletions

View File

@@ -420,7 +420,7 @@ function ExpUtil.get_storage_for_stack(options)
local current, count, entities = cache.current, cache.count, cache.entities
for i = 1, cache.count do
local entity = entities[((current + i - 1) % count) + 1]
if entity.can_insert(item) then
if entity and entity.can_insert(item) then
cache.current = current + 1
return entity
end