Modified sequencing

This commit is contained in:
2023-10-22 12:05:06 -04:00
parent ce0dfdabfb
commit cc7d741681
+5 -4
View File
@@ -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() {