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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user