Sea level logic updated.
This commit is contained in:
1 parent
924b8af827
commit
e9d549377e
1 file changed
+3
-1
@@ -247,7 +247,9 @@ public class Zone extends AbstractGameObject {
|
||||
// Zone AABB is set here as it's coordinate space is world requiring a parent.
|
||||
this.setBounds();
|
||||
|
||||
if (ZoneManager.getSeaFloor().equals(this)) {
|
||||
// Seafloor
|
||||
|
||||
if (this.parent == null) {
|
||||
this.seaLevel = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user