From 4a97ba3ea8cb449fe76ed1aef0b572e7cc01d542 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Mon, 12 Aug 2024 03:27:27 -0400 Subject: [PATCH] Fix `setSendViewDistance`'s return (#11247) --- patches/server/0987-Moonrise-optimisation-patches.patch | 6 +++--- 1 file 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;