forked from MagicBane/Server
World altitude set in setparent.
This commit is contained in:
@@ -251,10 +251,12 @@ public class Zone extends AbstractGameObject {
|
||||
this.maxLvl = this.parent.maxLvl;
|
||||
}
|
||||
|
||||
this.worldAltitude = ZoneManager.caclulateWorldAltitude(this);
|
||||
|
||||
this.setBounds();
|
||||
|
||||
if (this.getParent() == null) {
|
||||
this.seaLevel = 0;
|
||||
this.seaLevel = MBServerStatics.SEA_FLOOR_ALTITUDE;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -566,7 +566,6 @@ public class WorldServer {
|
||||
for (Zone zone : rootParent) {
|
||||
|
||||
ZoneManager.addZone(zone.getLoadNum(), zone);
|
||||
zone.worldAltitude = ZoneManager.caclulateWorldAltitude(zone);
|
||||
|
||||
//Handle Buildings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user