aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorhyperdefined <[email protected]>2024-08-12 03:27:27 -0400
committerGitHub <[email protected]>2024-08-12 09:27:27 +0200
commit4a97ba3ea8cb449fe76ed1aef0b572e7cc01d542 (patch)
tree573aef40ec7ad180b44417a11c0126519d8cd77a
parentf97aff74b6f7fd4940c0c0b6cca3f8ac6e1afdef (diff)
downloadPaper-4a97ba3ea8cb449fe76ed1aef0b572e7cc01d542.tar.gz
Paper-4a97ba3ea8cb449fe76ed1aef0b572e7cc01d542.zip
Fix `setSendViewDistance`'s return (#11247)
-rw-r--r--patches/server/0987-Moonrise-optimisation-patches.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0987-Moonrise-optimisation-patches.patch b/patches/server/0987-Moonrise-optimisation-patches.patch
index 8caaa2626f..468f55d499 100644
--- a/patches/server/0987-Moonrise-optimisation-patches.patch
+++ b/patches/server/0987-Moonrise-optimisation-patches.patch
@@ -4767,7 +4767,7 @@ index 0000000000000000000000000000000000000000..003a857e70ead858e8437e3c1bfaf22f
+}
diff --git a/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java
new file mode 100644
-index 0000000000000000000000000000000000000000..7249b78e21b12117480a18f2d07d0c978fe42e56
+index 0000000000000000000000000000000000000000..852d75a73dae7448cbe1e2f5e164b235efa8a969
--- /dev/null
+++ b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java
@@ -0,0 +1,1082 @@
@@ -4871,7 +4871,7 @@ index 0000000000000000000000000000000000000000..7249b78e21b12117480a18f2d07d0c97
+
+ public void setSendViewDistance(final int distance) {
+ this.updateViewDistance((final ViewDistances param) -> {
-+ return param.setTickViewDistance(distance);
++ return param.setSendViewDistance(distance);
+ });
+ }
+
@@ -26236,7 +26236,7 @@ index c97292f22a3402dbd59cef4af554954dc1d4f91a..b2c5ead035f583585b79f7eba51d66da
return crashreportsystemdetails;
}
diff --git a/src/main/java/net/minecraft/server/level/ServerPlayer.java b/src/main/java/net/minecraft/server/level/ServerPlayer.java
-index e45567e8112483d947e2ff12c01219b85b09b205..e05bd64abb644fa38dbfe1fe97737eaf8f535970 100644
+index 5b68fa9758d410ebe7b9bf7fd4221835fbce3d0b..45839cca7dd2e0ec3b6f146df4938da3e4b2c275 100644
--- a/src/main/java/net/minecraft/server/level/ServerPlayer.java
+++ b/src/main/java/net/minecraft/server/level/ServerPlayer.java
@@ -200,7 +200,7 @@ import org.bukkit.event.player.PlayerToggleSneakEvent;