fix world client leak caused by static CraftGUI (#95)

This commit is contained in:
Alexdoru authored and GitHub committed 2026-05-18 19:05:50 +02:00
1 parent bd0746583a
commit 0b312261db
1 file changed
+3 -1
@@ -267,7 +267,9 @@ public abstract class Window extends TopLevelWidget implements INetwork.ReceiveG
entityInventory = inventory;
}
public void onClose() {}
public void onClose() {
CraftGUI.render = null;
}
public boolean isServer() {
return !isClient();