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

Update map.lua

Uses new builder function to ensure there are no rocks in the position the silo will spawn.
This commit is contained in:
Jayefuu 2020-10-04 18:04:04 +01:00 committed by GitHub
parent ff989b9c30
commit 5840f143f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,7 @@ wilderness_ditch = b.if_else(b.change_tile(b.translate(b.rectangle(2, 17), -1, 0
local rocket_silo_shape = b.rectangle(9, 9)
rocket_silo_shape = b.change_tile(rocket_silo_shape, true, 'landfill')
rocket_silo_shape = b.remove_map_gen_trees(rocket_silo_shape)
rocket_silo_shape = b.remove_map_gen_simple_entity(rocket_silo_shape) -- Removes rocks.
wilderness_ditch = b.if_else(rocket_silo_shape, wilderness_ditch)
local wilderness_ditch_left = b.translate(wilderness_ditch, -(width_1 / 2 + width_2 + width_3 / 2), 0)