mirror of
https://github.com/BlueMap-Minecraft/BlueMapVue.git
synced 2025-01-27 00:11:19 +01:00
Fix entering free-flight above void causes y to be NaN
This commit is contained in:
parent
d62be951f3
commit
0cf9dd2bf6
@ -417,7 +417,7 @@ export class BlueMapApp {
|
||||
let startDistance = cm.distance;
|
||||
|
||||
let startY = cm.position.y;
|
||||
if (!targetY) targetY = this.mapViewer.map.terrainHeightAt(cm.position.x, cm.position.z) + 3;
|
||||
if (!targetY) targetY = this.mapViewer.map.terrainHeightAt(cm.position.x, cm.position.z) + 3 || startY;
|
||||
|
||||
let startAngle = cm.angle;
|
||||
let targetAngle = Math.PI / 2;
|
||||
@ -631,4 +631,4 @@ export class BlueMapApp {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user