mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
AGGRESSIVE fix render distance issues
This commit is contained in:
parent
be36e53bf4
commit
523d688f91
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue