forked from MagicBane/Server
property conforms to JSON
This commit is contained in:
@@ -56,7 +56,7 @@ public class Zone extends AbstractGameObject {
|
||||
public boolean isNPCCity = false;
|
||||
public boolean guild_zone;
|
||||
public String hash;
|
||||
public float worldAltitude = 0;
|
||||
public float global_height = 0;
|
||||
public float seaLevel = 0f;
|
||||
public float sea_level_offset = 0;
|
||||
public static final Set<Mob> respawnQue = Collections.newSetFromMap(new ConcurrentHashMap<>());
|
||||
@@ -230,7 +230,7 @@ public class Zone extends AbstractGameObject {
|
||||
}
|
||||
|
||||
this.setBounds();
|
||||
this.worldAltitude = ZoneManager.caclulateWorldAltitude(this);
|
||||
this.global_height = ZoneManager.calculateGlobalZoneHeight(this);
|
||||
setSeaLevel();
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ public class Zone extends AbstractGameObject {
|
||||
this.sea_level = this.parent.sea_level + this.sea_level_offset;
|
||||
break;
|
||||
case "SELF":
|
||||
this.sea_level = this.worldAltitude + this.sea_level_offset;
|
||||
this.sea_level = this.global_height + this.sea_level_offset;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user