mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-27 10:59:16 +00:00
ClassInstanceMultiMap belongs to Minecraft vanilla entity storage. And is unused, since replaced by spottedleaf's entity storage (rewrite chunk system). However these patches might be useful for vanilla entity storage if is used.
20 lines
1.1 KiB
Diff
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 5f4dcb645670dd1b07ff865d50530b731f0ef769..42032812e3c50f3ade62a0e69cb1168d83c42a71 100644
|
|
--- a/net/minecraft/server/level/ServerPlayer.java
|
|
+++ b/net/minecraft/server/level/ServerPlayer.java
|
|
@@ -2227,6 +2227,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 {
|