mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-30 23:03:45 +01:00
Fix mapgen issue for mcl5 to mcl2 conversion
This commit is contained in:
parent
d454697953
commit
9aeafe6053
@ -198,6 +198,9 @@ end
|
|||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
function settlements.evaluate_heightmap()
|
function settlements.evaluate_heightmap()
|
||||||
local heightmap = minetest.get_mapgen_object("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
|
-- max height and min height, initialize with impossible values for easier first time setting
|
||||||
local max_y = -50000
|
local max_y = -50000
|
||||||
local min_y = 50000
|
local min_y = 50000
|
||||||
|
Loading…
Reference in New Issue
Block a user