Mgvalleys: Correct spawn problems
Increase maximum spawn altitude to reduce spawn issues.
This commit is contained in:
parent
48a718e715
commit
af714c7ade
|
@ -536,7 +536,7 @@ int MapgenValleys::getSpawnLevelAtPoint(v2s16 p)
|
||||||
|
|
||||||
s16 level_at_point = terrainLevelAtPoint(p.X, p.Y);
|
s16 level_at_point = terrainLevelAtPoint(p.X, p.Y);
|
||||||
if (level_at_point <= water_level ||
|
if (level_at_point <= water_level ||
|
||||||
level_at_point > water_level + 16)
|
level_at_point > water_level + 32)
|
||||||
return MAX_MAP_GENERATION_LIMIT; // Unsuitable spawn point
|
return MAX_MAP_GENERATION_LIMIT; // Unsuitable spawn point
|
||||||
else
|
else
|
||||||
return level_at_point;
|
return level_at_point;
|
||||||
|
|
Loading…
Reference in New Issue