aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0202-Add-methods-to-get-translation-keys.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2024-12-01 15:43:56 -0800
committerSpottedleaf <[email protected]>2024-12-01 15:43:56 -0800
commitc2294d7067959d264eb8ad275557f194a3e2656f (patch)
treef28737440b32762ff86ff0a673f48c3b81700680 /patches/api/0202-Add-methods-to-get-translation-keys.patch
parentae80a251fc75abee4082981ac1ee59ccb2c9d96b (diff)
downloadPaper-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/api/0202-Add-methods-to-get-translation-keys.patch')
0 files changed, 0 insertions, 0 deletions