World altitude set in setparent.
This commit is contained in:
1 parent
91eb0c314f
commit
e26121177f
2 files changed
+3
-2
No files matched your search
@@ -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