diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index 95d6cedf..991a2b06 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -464,16 +464,14 @@ public enum ZoneManager { if (zone.parent == null) return worldAlttitude; - Zone parentZone = zone.parent; - // Children of seafloor - if (parentZone.parent == null) + if (ZoneManager.seaFloor.equals(zone.parent)) return worldAlttitude + zone.yOffset; // return height from heightmap engine at zone location - worldAlttitude = HeightMap.getWorldHeight(parentZone, zone.getLoc()); + worldAlttitude = HeightMap.getWorldHeight(zone.parent, zone.getLoc()); // Add zone offset to value