Skip to content

Commit 5593fbe

Browse files
committed
fix: construct Landscape in constructor of scene
1 parent 649c8e9 commit 5593fbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/runejs/client/scene/Scene.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Scene {
3737

3838
public static boolean lowMemory = true;
3939

40-
public final Landscape landscape = new Landscape();
40+
public final Landscape landscape;
4141

4242
public SceneTile[][][] tileArray;
4343
public int[][][] tileOcclusionCycles;
@@ -103,6 +103,7 @@ public class Scene {
103103
private CameraTileVisibility tileVisibilityInfo;
104104

105105
public Scene() {
106+
this.landscape = new Landscape(this);
106107
tileArray = new SceneTile[mapSizeZ][mapSizeX][mapSizeY];
107108
tileOcclusionCycles = new int[mapSizeZ][mapSizeX + 1][mapSizeY + 1];
108109
this.heightMap = this.landscape.tile_height;

0 commit comments

Comments
 (0)