forked from MagicBane/Server
Sea level logic updated.
This commit is contained in:
@@ -231,8 +231,6 @@ public class Zone extends AbstractGameObject {
|
|||||||
|
|
||||||
// Zone AABB is set here as it's coordinate space is world requiring a parent.
|
// Zone AABB is set here as it's coordinate space is world requiring a parent.
|
||||||
|
|
||||||
this.setBounds();
|
|
||||||
|
|
||||||
// Seafloor
|
// Seafloor
|
||||||
|
|
||||||
if (this.parent == null) {
|
if (this.parent == null) {
|
||||||
@@ -240,6 +238,7 @@ public class Zone extends AbstractGameObject {
|
|||||||
this.absY = MBServerStatics.SEA_FLOOR_ALTITUDE;
|
this.absY = MBServerStatics.SEA_FLOOR_ALTITUDE;
|
||||||
this.absZ = this.zCoord;
|
this.absZ = this.zCoord;
|
||||||
this.seaLevel = 0;
|
this.seaLevel = 0;
|
||||||
|
this.setBounds();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,6 +251,8 @@ public class Zone extends AbstractGameObject {
|
|||||||
this.maxLvl = this.parent.maxLvl;
|
this.maxLvl = this.parent.maxLvl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.setBounds();
|
||||||
|
|
||||||
if (this.getHeightMap() != null && this.getHeightMap().getSeaLevel() != 0)
|
if (this.getHeightMap() != null && this.getHeightMap().getSeaLevel() != 0)
|
||||||
this.seaLevel = this.worldAltitude + this.getHeightMap().getSeaLevel();
|
this.seaLevel = this.worldAltitude + this.getHeightMap().getSeaLevel();
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user