forked from MagicBane/Server
Method moved to manager.
This commit is contained in:
@@ -481,4 +481,12 @@ public enum ZoneManager {
|
||||
|
||||
return worldAlttitude;
|
||||
}
|
||||
|
||||
public static boolean isLocUnderwater(Vector3fImmutable currentLoc) {
|
||||
|
||||
float localAltitude = HeightMap.getWorldHeight(currentLoc);
|
||||
Zone zone = findSmallestZone(currentLoc);
|
||||
|
||||
return localAltitude < zone.getSeaLevel();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user