From d84f223b9d1ab306279f3f68d2ba36806b50dd65 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 11 Sep 2023 12:08:39 -0400 Subject: [PATCH] DevCmd update. --- src/engine/devcmd/cmds/GetHeightCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/devcmd/cmds/GetHeightCmd.java b/src/engine/devcmd/cmds/GetHeightCmd.java index 69872f7b..6698d924 100644 --- a/src/engine/devcmd/cmds/GetHeightCmd.java +++ b/src/engine/devcmd/cmds/GetHeightCmd.java @@ -32,7 +32,7 @@ public class GetHeightCmd extends AbstractDevCmd { Zone parentZone; currentZone = ZoneManager.findSmallestZone(playerCharacter.getLoc()); - parentZone = currentZone.getParent(); + parentZone = HeightMap.getNextZoneWithTerrain(currentZone.getParent()); float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc()); float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc());