From 9ba1f65d2934d7af67994b6760569410a741ba30 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Fri, 15 Oct 2021 19:20:32 -0700 Subject: [PATCH] Fix off by one for determining server view distance It was 1 greater than it should've been. lvar renaming caused the field viewDistance to be read when it should've been reading the watchDistance --- patches/server/Replace-player-chunk-loader-system.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Replace-player-chunk-loader-system.patch b/patches/server/Replace-player-chunk-loader-system.patch index a09df978ed..eff41bf1bc 100644 --- a/patches/server/Replace-player-chunk-loader-system.patch +++ b/patches/server/Replace-player-chunk-loader-system.patch @@ -1379,7 +1379,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 this.viewDistance = j; - this.setNoTickViewDistance(this.getRawNoTickViewDistance()); // Paper - no-tick view distance - propagate changes to no-tick, which does the actual chunk loading/sending -+ this.playerChunkManager.setTickDistance(Mth.clamp(viewDistance, 2, 32)); // Paper - replace player loader system ++ this.playerChunkManager.setTickDistance(Mth.clamp(watchDistance, 2, 32)); // Paper - replace player loader system } }