From d6d4008348e3072e5de52bad16adcaa2d8847279 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 9 Oct 2023 04:11:55 -0400 Subject: [PATCH] Error trap --- src/engine/objects/Zone.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index 49c8cc01..b4e69507 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -237,7 +237,12 @@ public class Zone extends AbstractGameObject { } this.setBounds(); - this.worldAltitude = ZoneManager.caclulateWorldAltitude(this); + + try { + this.worldAltitude = ZoneManager.caclulateWorldAltitude(this); + } catch (Exception e) { + throw new RuntimeException(e); + } setSeaLevel(); }