forked from MagicBane/Server
Method cleanup
This commit is contained in:
@@ -464,16 +464,14 @@ public enum ZoneManager {
|
|||||||
if (zone.parent == null)
|
if (zone.parent == null)
|
||||||
return worldAlttitude;
|
return worldAlttitude;
|
||||||
|
|
||||||
Zone parentZone = zone.parent;
|
|
||||||
|
|
||||||
// Children of seafloor
|
// Children of seafloor
|
||||||
|
|
||||||
if (parentZone.parent == null)
|
if (ZoneManager.seaFloor.equals(zone.parent))
|
||||||
return worldAlttitude + zone.yOffset;
|
return worldAlttitude + zone.yOffset;
|
||||||
|
|
||||||
// return height from heightmap engine at zone location
|
// return height from heightmap engine at zone location
|
||||||
|
|
||||||
worldAlttitude = HeightMap.getWorldHeight(parentZone, zone.getLoc());
|
worldAlttitude = HeightMap.getWorldHeight(zone.parent, zone.getLoc());
|
||||||
|
|
||||||
// Add zone offset to value
|
// Add zone offset to value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user