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:
parent
0fd02e11c8
commit
e041cb47ef
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user