forked from MagicBane/Server
Add y offset to zone altitude.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user