mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
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:
parent
25181bebe6
commit
9ba1f65d29
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue