Fix null player in ClientTick when unloading a level

This commit is contained in:
James Seibel
2023-07-28 07:24:13 -05:00
parent d5fc8b760a
commit 65ef693cb5
@@ -47,6 +47,12 @@ public class ClientLevelModule implements Closeable {
public void clientTick()
{
// can be false if the level is unloading
if (!MC_CLIENT.playerExists())
{
return;
}
ClientRenderState clientRenderState = this.ClientRenderStateRef.get();
if (clientRenderState == null)
{