Skip to content

Commit c2c74ef

Browse files
committed
Point tags memory leak fix
1 parent 62a54e4 commit c2c74ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/tk/roccodev/beezig/forge/ActiveGame.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
public class ActiveGame {
77

8-
private static String current = "", last = "";
8+
private static String current = "", last = "placeholder";
99

1010
public static void set(String game) {
11-
if(!last.equals(game)) PointsTagCache.clear();
11+
if(game.isEmpty())
12+
PointsTagCache.clear();
1213
last = current;
1314
current = game;
1415
EnderchestsListener.customSpawnPt = false;

0 commit comments

Comments
 (0)