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() {