1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Changed snakey_swamp to use Builders.remove_map_gen_entities_by_filter.

This commit is contained in:
Soggs 2019-10-14 12:10:33 +02:00
parent 0fd02e11c8
commit e041cb47ef

View File

@ -67,18 +67,7 @@ local function amount(a)
end
--Clean area of other ressources
local function no_resources(_, _, world, t)
for _, e in ipairs(
world.surface.find_entities_filtered(
{type = 'resource', area = {{world.x, world.y}, {world.x+1, world.y+1}}}
)
) do
e.destroy()
end
return t
end
ore_rectangle = b.apply_effect(ore_rectangle, no_resources)
ore_rectangle = b.remove_map_gen_entities_by_filter(ore_rectangle, {type = "resource"})
-- Spawn in starting ressources