Skip to content

Commit 5ef5c7f

Browse files
authored
fixed minor indenting error
1 parent bef9b5c commit 5ef5c7f

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

gui/stamper.lua

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,22 @@ local function getTiles(p1,p2,cull)
9999
local z=p1.z
100100
local data={}
101101
for k, block in ipairs(df.global.world.map.map_blocks) do
102-
if block.map_pos.z==z then
103-
for block_x, row in ipairs(block.designation) do
104-
local x=block_x+block.map_pos.x
105-
if x>=x1 and x<=x2 then
106-
if not data[x-x1] then
107-
data[x-x1]={}
108-
end
109-
for block_y, tile in ipairs(row) do
110-
local y=block_y+block.map_pos.y
111-
if y>=y1 and y<=y2 then
112-
data[x-x1][y-y1]=copyall(tile)
102+
if block.map_pos.z==z then
103+
for block_x, row in ipairs(block.designation) do
104+
local x=block_x+block.map_pos.x
105+
if x>=x1 and x<=x2 then
106+
if not data[x-x1] then
107+
data[x-x1]={}
108+
end
109+
for block_y, tile in ipairs(row) do
110+
local y=block_y+block.map_pos.y
111+
if y>=y1 and y<=y2 then
112+
data[x-x1][y-y1]=copyall(tile)
113+
end
113114
end
114115
end
115116
end
116-
end
117-
end
117+
end
118118
end
119119
data.xlen=xlen
120120
data.ylen=ylen

0 commit comments

Comments
 (0)