Update lawnmower.lua (#295)

This commit is contained in:
2024-05-29 21:34:50 +09:00
committed by GitHub
parent 7e986480fa
commit 4fa410e872

View File

@@ -16,7 +16,7 @@ Commands.new_command('lawnmower', 'Clean up biter corpse, decoratives and nuclea
local entities = player.surface.find_entities_filtered{position=player.position, radius=range, type='corpse'}
for _, entity in pairs(entities) do
if not (entity.name == 'transport-caution-corpse') and not (entity.name == 'invisible-transport-caution-corpse') then
if (entity.name ~= 'transport-caution-corpse' and entity.name ~= 'invisible-transport-caution-corpse') then
entity.destroy()
end
end