diff options
author | froobynooby <[email protected]> | 2022-03-09 18:39:20 +0930 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-09 10:09:20 +0100 |
commit | 7a2133301955b637bb84e0080583d12e6ad004e8 (patch) | |
tree | 1cd43da1f2d4294a56e9965a1a6e6fb679abf1d7 | |
parent | 718fab1f6bbbb83882fbbe7009e94bd140140b44 (diff) | |
download | Paper-7a2133301955b637bb84e0080583d12e6ad004e8.tar.gz Paper-7a2133301955b637bb84e0080583d12e6ad004e8.zip |
Fix setting the view distance to 32 (#7503)
-rw-r--r-- | patches/server/0865-Replace-player-chunk-loader-system.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0865-Replace-player-chunk-loader-system.patch b/patches/server/0865-Replace-player-chunk-loader-system.patch index 463c20c9df..d1e864a14d 100644 --- a/patches/server/0865-Replace-player-chunk-loader-system.patch +++ b/patches/server/0865-Replace-player-chunk-loader-system.patch @@ -1381,7 +1381,7 @@ index 36b6e7295cf7484675c8c2b9624c1f6fea7aed1d..38db3905f47fefb5c958fa24aef2313e public CompletableFuture<Either<ChunkAccess, ChunkHolder.ChunkLoadingFailure>> getOrScheduleFuture(ChunkStatus targetStatus, ChunkMap chunkStorage) { diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java -index a29b97f941eadb1ede5db805d32f2917469cccb9..edc6235288f0843608dae4552e05915e4067cbf2 100644 +index a29b97f941eadb1ede5db805d32f2917469cccb9..eb469eabf7a5888a4249a6267de0c993e65b2ad0 100644 --- a/src/main/java/net/minecraft/server/level/ChunkMap.java +++ b/src/main/java/net/minecraft/server/level/ChunkMap.java @@ -217,6 +217,7 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider @@ -1467,7 +1467,7 @@ index a29b97f941eadb1ede5db805d32f2917469cccb9..edc6235288f0843608dae4552e05915e - this.updateChunkTracking(entityplayer, chunkcoordintpair, mutableobject, flag, flag1); - }); - } -+ this.playerChunkManager.setLoadDistance(Mth.clamp(this.viewDistance, 2, 32)); // Paper - replace player loader system ++ this.playerChunkManager.setLoadDistance(this.viewDistance); // Paper - replace player loader system } } |