Browse Source

Sea level logic updated.

combat-2
MagicBot 1 year ago
parent
commit
e9d549377e
  1. 4
      src/engine/objects/Zone.java

4
src/engine/objects/Zone.java

@ -247,7 +247,9 @@ public class Zone extends AbstractGameObject { @@ -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;
}

Loading…
Cancel
Save