From 523d688f911927f810c718e94f538757130fbd6a Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Sat, 13 Jul 2024 16:11:34 -0400 Subject: [PATCH] AGGRESSIVE fix render distance issues --- .../java/org/geysermc/geyser/session/GeyserSession.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java index 60ff45821..7c4eb7d2c 100644 --- a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java +++ b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java @@ -1444,12 +1444,7 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource { * We don't want to apply this for every render distance, if at all possible, because */ private void recalculateBedrockRenderDistance() { - int renderDistance; - if (this.clientRenderDistance < this.serverRenderDistance) { - renderDistance = ChunkUtils.squareToCircle(this.serverRenderDistance); - } else { - renderDistance = this.serverRenderDistance; - } + int renderDistance = ChunkUtils.squareToCircle(this.serverRenderDistance); ChunkRadiusUpdatedPacket chunkRadiusUpdatedPacket = new ChunkRadiusUpdatedPacket(); chunkRadiusUpdatedPacket.setRadius(renderDistance); upstream.sendPacket(chunkRadiusUpdatedPacket);