mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07: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:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user