Skip to content

Commit

Permalink
GeyserSession: remove 32 render distance cap (#1546)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Camotoy authored Dec 24, 2020
1 parent eca626a commit 9fc6228
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ public void sendForm(FormWindow window, int id) {

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();
Expand Down

0 comments on commit 9fc6228

Please sign in to comment.