Compare commits
2 Commits
6494e07e9e
...
7655b67338
| Author | SHA1 | Date | |
|---|---|---|---|
| 7655b67338 | |||
| 68aef50283 |
@@ -136,6 +136,7 @@ public class Terrain {
|
|||||||
|
|
||||||
public float getInterpolatedTerrainHeight(Vector2f terrainLoc) {
|
public float getInterpolatedTerrainHeight(Vector2f terrainLoc) {
|
||||||
|
|
||||||
|
try {
|
||||||
float interpolatedHeight;
|
float interpolatedHeight;
|
||||||
|
|
||||||
Vector2f terrain_cell = getTerrainCell(terrainLoc);
|
Vector2f terrain_cell = getTerrainCell(terrainLoc);
|
||||||
@@ -168,6 +169,10 @@ public class Terrain {
|
|||||||
interpolatedHeight *= this.terrain_scale; // Scale height
|
interpolatedHeight *= this.terrain_scale; // Scale height
|
||||||
|
|
||||||
return interpolatedHeight;
|
return interpolatedHeight;
|
||||||
|
} catch (Exception e) {
|
||||||
|
Logger.error(this.zone.zoneName + ":" + this.zone.getObjectUUID());
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public float terrainBlend(Vector2f terrainLoc) {
|
public float terrainBlend(Vector2f terrainLoc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user