3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-29 09:30:10 +01:00

AGGRESSIVE fix render distance issues

Dieser Commit ist enthalten in:
Camotoy 2024-07-13 16:11:34 -04:00
Ursprung be36e53bf4
Commit 523d688f91
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -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 * We don't want to apply this for every render distance, if at all possible, because
*/ */
private void recalculateBedrockRenderDistance() { private void recalculateBedrockRenderDistance() {
int renderDistance; int renderDistance = ChunkUtils.squareToCircle(this.serverRenderDistance);
if (this.clientRenderDistance < this.serverRenderDistance) {
renderDistance = ChunkUtils.squareToCircle(this.serverRenderDistance);
} else {
renderDistance = this.serverRenderDistance;
}
ChunkRadiusUpdatedPacket chunkRadiusUpdatedPacket = new ChunkRadiusUpdatedPacket(); ChunkRadiusUpdatedPacket chunkRadiusUpdatedPacket = new ChunkRadiusUpdatedPacket();
chunkRadiusUpdatedPacket.setRadius(renderDistance); chunkRadiusUpdatedPacket.setRadius(renderDistance);
upstream.sendPacket(chunkRadiusUpdatedPacket); upstream.sendPacket(chunkRadiusUpdatedPacket);