From fa4039cf63e5d2a0489242fa5d6942fd3ffee40e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 12 Sep 2023 16:25:46 -0400 Subject: [PATCH] Add y offset to zone altitude. --- src/engine/gameManager/ZoneManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index 3a2aa7dc..49c42da4 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -459,16 +459,14 @@ public enum ZoneManager { float worldAlttitude = MBServerStatics.SEA_FLOOR_ALTITUDE; - // Seafloor - if (zone.getParent() == null) { + if (zone.getParent() == null) return worldAlttitude; - } Zone parentZone = zone.getParent(); - // Child of seafloor + // Children of seafloor if (parentZone.getParent() == null) return worldAlttitude + zone.getYCoord();