mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
Deleted Builders.remove_decoratives() from Builders.lua as it was a inferior duplicate of the newly added Builders.remove_map_gen_decoratives().
Swapped Snakey_Swamp and Snakier_Swamp to use Builders.remove_map_gen_decoratives() instead of Builders.remove_decoratives().
This commit is contained in:
parent
f3ffc28512
commit
f1bfc70d43
@ -40,7 +40,7 @@ local path =
|
||||
b.translate(divider, -(path_width + divider_width) / 2, -path_width / 2)
|
||||
}
|
||||
path = b.change_tile(path, true, 'water-mud')
|
||||
path = b.remove_decoratives(path)
|
||||
path = b.remove_map_gen_decoratives(path)
|
||||
|
||||
-- Water Border
|
||||
local water_rectangle = b.rectangle(tile_width, water_height)
|
||||
|
@ -58,7 +58,7 @@ local path = b.any
|
||||
}
|
||||
|
||||
path = b.change_tile(path, true, divider_tile)
|
||||
path = b.remove_decoratives(path)
|
||||
path = b.remove_map_gen_decoratives(path)
|
||||
|
||||
-- Water Border
|
||||
local water_rectangle = b.rectangle(tile_width, water_height)
|
||||
|
@ -1036,22 +1036,6 @@ function Builders.apply_decoratives(shape, decorative_shapes)
|
||||
end
|
||||
end
|
||||
|
||||
--- Removes the decoratives in the given shape
|
||||
--- This is useful for example when using shapes of 'water-shallow'
|
||||
function Builders.remove_decoratives(shape)
|
||||
return function(x, y, world)
|
||||
local tile = shape(x, y, world)
|
||||
|
||||
if not tile then
|
||||
return false
|
||||
end
|
||||
|
||||
world.surface.destroy_decoratives({position = {x=world.x, y=world.y}})
|
||||
|
||||
return tile
|
||||
end
|
||||
end
|
||||
|
||||
-- pattern builders
|
||||
|
||||
--- Docs: https://github.com/Refactorio/RedMew/wiki/Using-the-Builders#builderssingle_pattern
|
||||
|
Loading…
x
Reference in New Issue
Block a user