This commit is contained in:
2025-01-13 22:48:10 +09:00
parent bfe5110254
commit c10de39a89

View File

@@ -152,12 +152,14 @@ if config.auto_collect_bodies then
Event.add(defines.events.on_character_corpse_expired, function(event) Event.add(defines.events.on_character_corpse_expired, function(event)
local corpse = event.corpse local corpse = event.corpse
local inventory = assert(corpse.get_inventory(defines.inventory.character_corpse)) local inventory = assert(corpse.get_inventory(defines.inventory.character_corpse))
--[[
ExpUtil.transfer_inventory_to_surface{ ExpUtil.transfer_inventory_to_surface{
inventory = inventory, inventory = inventory,
surface = corpse.surface, surface = corpse.surface,
name = "steel-chest", name = "steel-chest",
allow_creation = true, allow_creation = true,
} }
]]
end) end)
end end