World altitude set in setparent.

This commit is contained in:
2023-09-14 12:07:08 -04:00
parent 91eb0c314f
commit e26121177f
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -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;
}