clear lastWorld reference when the world is null

This commit is contained in:
Alexdoru committed 2025-06-02 23:32:42 +02:00
1 parent 1cd4f802dd
commit b39dd986bd
1 file changed
+2
@@ -308,6 +308,8 @@ public class ClientHandler {
if (mc.currentScreen == null) NEIController.processCreativeCycling(mc.thePlayer.inventory);
updateMagnetMode(mc.theWorld, mc.thePlayer);
} else {
lastworld = null;
}
GuiScreen gui = mc.currentScreen;