mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed #293 (Flying AI)
This commit is contained in:
@@ -134,7 +134,7 @@ public abstract class AIState {
|
||||
}
|
||||
|
||||
if(cell == null) {
|
||||
float height = core.terrainService.getHeight(creature.getPlanetId(), newX, newX);
|
||||
float height = core.terrainService.getHeight(creature.getPlanetId(), newX, newZ);
|
||||
newY = height;
|
||||
} else {
|
||||
newY = currentPathPosition.y;
|
||||
@@ -145,7 +145,7 @@ public abstract class AIState {
|
||||
} else {
|
||||
newX = currentPathPosition.x;
|
||||
newZ = currentPathPosition.z;
|
||||
newY = core.terrainService.getHeight(creature.getPlanetId(), newX, newX);
|
||||
newY = core.terrainService.getHeight(creature.getPlanetId(), newX, newZ);
|
||||
}
|
||||
oldPosition = currentPathPosition;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user