From 99fe5a8d88a311445c0d00b90325a059d360c46f Mon Sep 17 00:00:00 2001 From: SimonFlapse Date: Thu, 10 Oct 2019 10:24:41 +0200 Subject: [PATCH] Restricted landfill to 'water' (connected_dots) --- map_gen/maps/connected_dots.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/map_gen/maps/connected_dots.lua b/map_gen/maps/connected_dots.lua index 6321e6e2..f5120993 100644 --- a/map_gen/maps/connected_dots.lua +++ b/map_gen/maps/connected_dots.lua @@ -20,6 +20,12 @@ RS.set_map_gen_settings( } ) +local allowed_landfill_tiles = { + ['water'] = true +} + +require 'map_gen.shared.restrict_landfill_tile'(allowed_landfill_tiles) + local function no_enemies(_, _, world, tile) for _, e in ipairs(world.surface.find_entities_filtered({force = 'enemy', position = {world.x, world.y}})) do e.destroy()