9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-30 12:29:13 +00:00
Files
Leaf/leaf-server/minecraft-patches/features/0162-Fix-MC-119417.patch
Dreeam 46825749cd Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@fcfc6c3f Expose HexColor argument type (#12833)
PaperMC/Paper@4000fcc3 Fix typo in PluginBootstrap javadocs (#12821)
PaperMC/Paper@25d358cf [ci/skip] javadoc: Fix grammatical error for getState (#12817)
PaperMC/Paper@ba7c9826 Add missing Range annotations to dialog types
PaperMC/Paper@533d93c7 Don't consume anchor charge if loc changes (#12835)
2025-07-14 00:51:12 +08:00

20 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: HaHaWTH <102713261+HaHaWTH@users.noreply.github.com>
Date: Sun, 7 Jul 2024 01:42:45 +0800
Subject: [PATCH] Fix MC-119417
Related MC issue: https://bugs.mojang.com/browse/MC/issues/MC-119417
diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java
index 46dcfd09cc01cdf5aca43ef100e0307ae1b72e0d..567187499c29fbd159b472278665a824dbb1cfd6 100644
--- a/net/minecraft/server/level/ServerPlayer.java
+++ b/net/minecraft/server/level/ServerPlayer.java
@@ -2236,6 +2236,7 @@ public class ServerPlayer extends Player implements ca.spottedleaf.moonrise.patc
this.connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.CHANGE_GAME_MODE, gameMode.getId()));
if (gameMode == GameType.SPECTATOR) {
this.removeEntitiesOnShoulder();
+ this.stopSleeping(); // Leaf - Fix MC-119417
this.stopRiding();
EnchantmentHelper.stopLocationBasedEffects(this);
} else {