Check if session is ready before ignoring local chunks

This commit is contained in:
s809
2025-01-24 11:20:03 +05:00
parent a347caafed
commit 736df9f848
@@ -283,7 +283,15 @@ public class DhClientLevel extends AbstractDhLevel implements IDhClientLevel
return (renderState != null) ? renderState.renderBufferHandler : null;
}
public boolean shouldProcessLocalChunkUpdates() { return this.networkState == null || !this.networkState.sessionConfig.isRealTimeUpdatesEnabled(); }
public boolean shouldProcessLocalChunkUpdates()
{
if (this.networkState == null || !this.networkState.isReady())
{
return true;
}
return !this.networkState.sessionConfig.isRealTimeUpdatesEnabled();
}