Visibility promotion for a data class

This commit is contained in:
2023-09-17 12:53:56 -04:00
parent 83be09d643
commit 3fb08ca2c3
5 changed files with 17 additions and 37 deletions
+2 -2
View File
@@ -280,8 +280,8 @@ public class Zone extends AbstractGameObject {
return;
}
if (this.getHeightMap().getSeaLevel() != 0)
this.seaLevel = this.worldAltitude + this.getHeightMap().getSeaLevel();
if (this.getHeightMap().seaLevel != 0)
this.seaLevel = this.worldAltitude + this.getHeightMap().seaLevel;
else
this.seaLevel = this.parent.seaLevel;