1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

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

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