Fix mapgen issue for mcl5 to mcl2 conversion

This commit is contained in:
ancientmarinerdev 2023-01-22 20:27:57 +00:00 committed by Johannes Fritz
parent d454697953
commit 9aeafe6053

@ -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