GeyserSession: remove 32 render distance cap (#1546)

Having an incongruency between the server render distance and the client render distance appears to cause issues, and I have not been able to encounter such a crash.
This commit is contained in:
Camotoy 2020-12-24 13:40:57 -05:00 committed by GitHub
parent eca626aad6
commit 9fc6228fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -653,7 +653,6 @@ public class GeyserSession implements CommandSender {
public void setRenderDistance(int renderDistance) {
renderDistance = GenericMath.ceil(++renderDistance * MathUtils.SQRT_OF_TWO); //square to circle
if (renderDistance > 32) renderDistance = 32; // <3 u ViaVersion but I don't like crashing clients x)
this.renderDistance = renderDistance;
ChunkRadiusUpdatedPacket chunkRadiusUpdatedPacket = new ChunkRadiusUpdatedPacket();