Sea level logic updated.

This commit is contained in:
2023-09-12 15:06:26 -04:00
parent 924b8af827
commit e9d549377e
+3 -1
View File
@@ -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;
}