From 4b0814c0a10574aea7d0f9ffeeb1ea3e8a6c2966 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 12 Sep 2023 16:24:47 -0400 Subject: [PATCH] Add y offset to zone altitude. --- src/engine/gameManager/ZoneManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index f631f0ed..3a2aa7dc 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -477,6 +477,9 @@ public enum ZoneManager { worldAlttitude = HeightMap.getWorldHeight(parentZone, zone.getLoc()); + // Add zone offset to value + worldAlttitude += zone.getYCoord(); + return worldAlttitude; } }