From ecb846fcfe66420036e30c861aeeba5c4cceaee6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 30 Jul 2021 18:03:39 +0100 Subject: [PATCH] //erode river: fix undefined global variable --- worldeditadditions/lib/erode/river.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions/lib/erode/river.lua b/worldeditadditions/lib/erode/river.lua index c3d033c..df200a4 100644 --- a/worldeditadditions/lib/erode/river.lua +++ b/worldeditadditions/lib/erode/river.lua @@ -47,7 +47,7 @@ function worldeditadditions.erode.river(heightmap_initial, heightmap, heightmap_ local height_up = heightmap[hi] local height_down = heightmap[hi] local height_left = heightmap[hi] - local height_down = heightmap[hi] + local height_right = heightmap[hi] if x > 0 then height_left = heightmap[z*heightmap_size.x + x-1] end if x < heightmap_size.x - 1 then height_right = heightmap[z*heightmap_size.x + x+1] end