Method moved to manager.

This commit is contained in:
MagicBot committed 2023-09-20 14:31:48 -04:00
1 parent 7b8cafc8ac
commit bf9fdae58b
4 files changed
+11 -13

No files matched your search

+8
View File
@@ -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();
}
}