1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Merge pull request #1151 from Refactorio/corpse_cleaner_fix

Updated corpse remover to only remove biter corpses
This commit is contained in:
Jayefuu 2021-01-12 17:06:42 +00:00 committed by GitHub
commit 164baaa523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,8 @@ Global.register(corpse_queue, function(tbl)
end)
local function entity_died(event)
if not event.unit_number then
local prototype_type = event.prototype.type
if prototype_type ~= 'unit' and prototype_type ~= 'turret' then
return
end