Add y offset to zone altitude.

This commit is contained in:
2023-09-12 16:25:46 -04:00
parent 4b0814c0a1
commit fa4039cf63
+2 -4
View File
@@ -459,16 +459,14 @@ public enum ZoneManager {
float worldAlttitude = MBServerStatics.SEA_FLOOR_ALTITUDE;
// Seafloor
if (zone.getParent() == null) {
if (zone.getParent() == null)
return worldAlttitude;
}
Zone parentZone = zone.getParent();
// Child of seafloor
// Children of seafloor
if (parentZone.getParent() == null)
return worldAlttitude + zone.getYCoord();