Browse Source

Sea level logic updated.

feature-workorder
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 {
// 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;
} }

Loading…
Cancel
Save