From cc7d74168104cfaf938d09f04ead3639c1e01e8f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 22 Oct 2023 12:05:06 -0400 Subject: [PATCH] Modified sequencing --- src/engine/objects/Zone.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index 32fb9c72..37092cee 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -165,12 +165,16 @@ public class Zone extends AbstractWorldObject { if (ZoneManager.seaFloor == null) ZoneManager.seaFloor = this; + this.setParent(); + this.setBounds(); + if (this.template.terrain_type.equals("NONE")) this.terrain = null; else this.terrain = new Terrain(this); - this.setParent(); + this.global_height = ZoneManager.calculateGlobalZoneHeight(this); + setSeaLevel(); if (this.min_level == 0 && this.parent != null) { this.min_level = this.parent.min_level; @@ -222,9 +226,6 @@ public class Zone extends AbstractWorldObject { this.max_level = this.parent.max_level; } - this.setBounds(); - this.global_height = ZoneManager.calculateGlobalZoneHeight(this); - setSeaLevel(); } private void setSeaLevel() {