From d414c19904474b3ce7e622b2f14e7ee4f773c9c6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 15 Oct 2023 13:31:31 -0400 Subject: [PATCH] Set parent zone properly --- src/engine/InterestManagement/Terrain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index dddd4a1c..b484134a 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -102,7 +102,7 @@ public class Terrain { // Retrieve the next zone with a terrain defined. Zone terrainZone = getNextZoneWithTerrain(zone); - Zone parentZone = getNextZoneWithTerrain(zone); + Zone parentZone = getNextZoneWithTerrain(zone.parent); // Transform world loc into zone space coordinate system