From 4fa410e8728c3ff4c520b4d32ec9c8b894044977 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 29 May 2024 21:34:50 +0900 Subject: [PATCH] Update lawnmower.lua (#295) --- modules/commands/lawnmower.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands/lawnmower.lua b/modules/commands/lawnmower.lua index 13538416..04e7eb66 100644 --- a/modules/commands/lawnmower.lua +++ b/modules/commands/lawnmower.lua @@ -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