|
|
|
@ -165,12 +165,16 @@ public class Zone extends AbstractWorldObject {
@@ -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 {
@@ -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() { |
|
|
|
|