diff options
author | Bjarne Koll <[email protected]> | 2024-12-17 20:50:41 +0100 |
---|---|---|
committer | Bjarne Koll <[email protected]> | 2024-12-20 03:07:58 +0100 |
commit | 431303ff40cd62ec274eb8d1d6306cced77fb9c4 (patch) | |
tree | 6afd33fce1259c7ec6380e9531f4316410ec6a1f | |
parent | 2935905ced6c8543a87eb0f0971542c4531aed6e (diff) | |
download | Paper-431303ff40cd62ec274eb8d1d6306cced77fb9c4.tar.gz Paper-431303ff40cd62ec274eb8d1d6306cced77fb9c4.zip |
Move ChunkMap setServerViewDistance to ATs
-rw-r--r-- | build-data/paper.at | 1 | ||||
-rw-r--r-- | paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/build-data/paper.at b/build-data/paper.at index 0c0e4084b9..d47d32c8e3 100644 --- a/build-data/paper.at +++ b/build-data/paper.at @@ -68,6 +68,7 @@ public net.minecraft.server.level.ChunkMap level public net.minecraft.server.level.ChunkMap progressListener public net.minecraft.server.level.ChunkMap save(Lnet/minecraft/world/level/chunk/ChunkAccess;)Z public net.minecraft.server.level.ChunkMap serverViewDistance +public net.minecraft.server.level.ChunkMap setServerViewDistance(I)V public net.minecraft.server.level.ChunkMap toDrop public net.minecraft.server.level.ChunkMap updatingChunkMap public net.minecraft.server.level.ChunkMap visibleChunkMap diff --git a/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch b/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch index 26c38d11c8..6c090dc5e0 100644 --- a/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch +++ b/paper-server/patches/sources/net/minecraft/server/level/ChunkMap.java.patch @@ -143,15 +143,6 @@ } }, this.unloadQueue::add).whenComplete((_void, error) -> { if (error != null) { -@@ -818,7 +_,7 @@ - } - } - -- protected void setServerViewDistance(int viewDistance) { -+ public void setServerViewDistance(int viewDistance) { // Paper - public - int i = Mth.clamp(viewDistance, 2, 32); - if (i != this.serverViewDistance) { - this.serverViewDistance = i; @@ -856,7 +_,7 @@ } |