wea.apply_heightmap_changes: fix loop

This commit is contained in:
Starbeamrainbowlabs 2021-07-04 14:30:22 +01:00
parent 1d82013d86
commit 0212950d87
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ function worldeditadditions.apply_heightmap_changes(pos1, pos2, area, data, heig
local node_id_air = minetest.get_content_id("air")
local node_id_ignore = minetest.get_content_id("ignore")
for z = heightmap_size.z, 0, -1 do
for x = heightmap_size.x, 0, -1 do
for z = heightmap_size.z - 1, 0, -1 do
for x = heightmap_size.x - 1, 0, -1 do
local hi = z*heightmap_size.x + x
local height_old = heightmap_old[hi]