9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-19 23:09:26 +00:00
Files
DivineMC/divinemc-server/minecraft-patches/sources/net/minecraft/server/level/ServerPlayer.java.patch
NONPLAYT 672dd5138d Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@8c77678e Updated Upstream (Paper)
2025-05-01 11:02:44 +03:00

11 lines
543 B
Diff

--- a/net/minecraft/server/level/ServerPlayer.java
+++ b/net/minecraft/server/level/ServerPlayer.java
@@ -2185,6 +_,7 @@
this.connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.CHANGE_GAME_MODE, gameMode.getId()));
if (gameMode == GameType.SPECTATOR) {
this.removeEntitiesOnShoulder();
+ this.stopSleeping(); // DivineMC - Fix MC-119417
this.stopRiding();
EnchantmentHelper.stopLocationBasedEffects(this);
} else {