Compare commits

...

1 Commits

Author SHA1 Message Date
ancientmarinerdev 634c0c6561 Fix mapgen issue for mcl5 to mcl2 conversion 2023-01-22 20:27:57 +00:00
1 changed files with 3 additions and 0 deletions

View File

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