mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Update lawnmower.lua (#295)
This commit is contained in:
@@ -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'}
|
local entities = player.surface.find_entities_filtered{position=player.position, radius=range, type='corpse'}
|
||||||
|
|
||||||
for _, entity in pairs(entities) do
|
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()
|
entity.destroy()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user