mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
.
This commit is contained in:
@@ -155,7 +155,7 @@ if config.auto_collect_bodies then
|
|||||||
ExpUtil.transfer_inventory_to_surface{
|
ExpUtil.transfer_inventory_to_surface{
|
||||||
inventory = inventory,
|
inventory = inventory,
|
||||||
surface = corpse.surface,
|
surface = corpse.surface,
|
||||||
name = "iron-chest",
|
name = "steel-chest",
|
||||||
allow_creation = true,
|
allow_creation = true,
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ function ExpUtil.get_storage_for_stack(options)
|
|||||||
local current, count, entities = cache.current, cache.count, cache.entities
|
local current, count, entities = cache.current, cache.count, cache.entities
|
||||||
for i = 1, cache.count do
|
for i = 1, cache.count do
|
||||||
local entity = entities[((current + i - 1) % count) + 1]
|
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
|
cache.current = current + 1
|
||||||
return entity
|
return entity
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user