mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Fix mapgen issue for mcl5 to mcl2 conversion
This commit is contained in:
parent
d454697953
commit
9aeafe6053
1 changed files with 3 additions and 0 deletions
|
@ -198,6 +198,9 @@ end
|
|||
-------------------------------------------------------------------------------
|
||||
function settlements.evaluate_heightmap()
|
||||
local heightmap = minetest.get_mapgen_object("heightmap")
|
||||
|
||||
if not heightmap then return max_height_difference + 1 end
|
||||
|
||||
-- max height and min height, initialize with impossible values for easier first time setting
|
||||
local max_y = -50000
|
||||
local min_y = 50000
|
||||
|
|
Loading…
Reference in a new issue