diff options
author | Spottedleaf <[email protected]> | 2024-12-01 15:43:56 -0800 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-12-01 15:43:56 -0800 |
commit | c2294d7067959d264eb8ad275557f194a3e2656f (patch) | |
tree | f28737440b32762ff86ff0a673f48c3b81700680 /patches/server/0272-BlockDestroyEvent.patch | |
parent | ae80a251fc75abee4082981ac1ee59ccb2c9d96b (diff) | |
download | Paper-c2294d7067959d264eb8ad275557f194a3e2656f.tar.gz Paper-c2294d7067959d264eb8ad275557f194a3e2656f.zip |
Fix several off-by-one errors in view distance calculations
1. For NearbyPlayers, we need to be using the view distance, and
not the load distance (which is +1 of the view distance).
2. Correctly clamp tick distance to view distance. Since
load distance is +1 of view distance, we need to subtract
one from the load distance when clamping.
Additionally, add checks inside ViewDistances to ensure that
the inputs are in range to catch future errors.
Also, clamp simulation distance, as values < 0 or above
MAX_VIEW_DISTANCE do not make sense to configure.
Diffstat (limited to 'patches/server/0272-BlockDestroyEvent.patch')
0 files changed, 0 insertions, 0 deletions