forked from MagicBane/Server
Sea level logic updated.
This commit is contained in:
@@ -247,7 +247,9 @@ 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();
|
this.setBounds();
|
||||||
|
|
||||||
if (ZoneManager.getSeaFloor().equals(this)) {
|
// Seafloor
|
||||||
|
|
||||||
|
if (this.parent == null) {
|
||||||
this.seaLevel = 0;
|
this.seaLevel = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user