Skip to content

Commit aad46bf

Browse files
committed
refactor: remove some static init from Model
1 parent abbcfec commit aad46bf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/main/java/org/runejs/client/input/MouseHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public class MouseHandler implements MouseListener, MouseMotionListener, FocusLi
2323
public static int clickX = 0;
2424
public static int clickY = 0;
2525
public static long clickTime = 0L;
26-
public static int cursorY;
27-
public static int cursorX;
28-
public static boolean gameScreenClickable;
26+
public static int cursorY = 0;
27+
public static int cursorX = 0;
28+
public static boolean gameScreenClickable = false;
2929
public static volatile int framesSinceMouseInput = 0;
3030
private static volatile int eventClickX = 0;
3131
private static volatile long lastClick = 0L;

src/main/java/org/runejs/client/media/renderable/Model.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public class Model extends Renderable {
4949

5050
static {
5151
anIntArray3199 = new int[128];
52-
MouseHandler.cursorY = 0;
5352
anIntArray3205 = new int[10];
5453
anIntArray3203 = new int[4096];
5554
hoveredHash = new int[1000];
@@ -59,7 +58,6 @@ public class Model extends Renderable {
5958
aBooleanArray3201 = new boolean[4096];
6059
vertexScreenZ = new int[4096];
6160
anIntArray3214 = new int[1];
62-
MouseHandler.gameScreenClickable = false;
6361
anIntArray3216 = new int[2000];
6462
anIntArray3202 = Rasterizer3D.hsl2rgb;
6563
vertexScreenX = new int[4096];
@@ -74,7 +72,6 @@ public class Model extends Renderable {
7472
COSINE = Rasterizer3D.cosinetable;
7573
aBooleanArray3224 = new boolean[4096];
7674
anIntArray3228 = Rasterizer3D.anIntArray2929;
77-
MouseHandler.cursorX = 0;
7875
anIntArray3226 = new int[12];
7976
int i = 0;
8077
int i_322_ = 248;

0 commit comments

Comments
 (0)