property conforms to JSON

This commit is contained in:
2023-10-12 06:19:22 -04:00
parent 9e96add299
commit 1b2c218e83
7 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -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;
}
}