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
This commit is contained in:
Spottedleaf 2021-10-15 19:20:32 -07:00
parent 25181bebe6
commit 9ba1f65d29

View file

@ -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
}
}