AGGRESSIVE fix render distance issues

This commit is contained in:
Camotoy 2024-07-13 16:11:34 -04:00
parent be36e53bf4
commit 523d688f91
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

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