No more warnings

This commit is contained in:
Cooldude2606 committed 2024-11-19 22:32:46 +00:00
1 parent 32a8ba8f3a
commit 3145f7e904
43 files changed
+215 -177

No files matched your search

@@ -63,6 +63,7 @@ end
Event.add(defines.events.on_player_died, function(event)
local player = game.players[event.player_index]
local corpse = player.surface.find_entity("character-corpse", player.position)
if not corpse or not corpse.valid then return end
if config.use_chests_as_bodies then
local items = corpse.get_inventory(defines.inventory.character_corpse)
local chest = move_items(items, corpse.surface, corpse.position)