1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/shared/chunk_utils.lua
Matthew 691d47cbd0 Cleanup map_gen/shared (#421)
* Cleanup whitespaces+tabs

* Tabs to spaces
2018-11-21 14:34:19 +01:00

11 lines
341 B
Lua

function removeChunk(event)
local surface = event.surface
local tiles = {}
for x = event.area.left_top.x, event.area.right_bottom.x do
for y = event.area.left_top.y, event.area.right_bottom.y do
table.insert(tiles, {name = "out-of-map", position = {x,y}})
end
end
surface.set_tiles(tiles)
end