From e9d549377e0464d11385f721304695f1d8383d36 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 12 Sep 2023 15:06:26 -0400 Subject: [PATCH] Sea level logic updated. --- src/engine/objects/Zone.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index 9280ca6a..af9ecfa7 100644 --- a/src/engine/objects/Zone.java +++ b/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. this.setBounds(); - if (ZoneManager.getSeaFloor().equals(this)) { + // Seafloor + + if (this.parent == null) { this.seaLevel = 0; return; }