diff options
Diffstat (limited to 'patches/server/0900-Fix-inventory-desync.patch')
-rw-r--r-- | patches/server/0900-Fix-inventory-desync.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0900-Fix-inventory-desync.patch b/patches/server/0900-Fix-inventory-desync.patch index 3381bed750..fce9f49abd 100644 --- a/patches/server/0900-Fix-inventory-desync.patch +++ b/patches/server/0900-Fix-inventory-desync.patch @@ -5,12 +5,12 @@ Subject: [PATCH] Fix inventory desync diff --git a/src/main/java/net/minecraft/world/entity/Mob.java b/src/main/java/net/minecraft/world/entity/Mob.java -index 70a151c8d109780350423eba5a951733ac855f23..90cde88f0f1c2991354685c0423475b98e0c28e5 100644 +index 7b10bb9cbf6f2b4a70ddaa0ba4bc7409a17f3f09..66814adfb2cf92067702fc2695b083661cf859c0 100644 --- a/src/main/java/net/minecraft/world/entity/Mob.java +++ b/src/main/java/net/minecraft/world/entity/Mob.java -@@ -1467,6 +1467,7 @@ public abstract class Mob extends LivingEntity implements EquipmentUser, Targeti - // CraftBukkit start - fire PlayerLeashEntityEvent +@@ -1468,6 +1468,7 @@ public abstract class Mob extends LivingEntity implements EquipmentUser, Targeti if (CraftEventFactory.callPlayerLeashEntityEvent(this, player, player, hand).isCancelled()) { + ((ServerPlayer) player).resendItemInHands(); // SPIGOT-7615: Resend to fix client desync with used item ((ServerPlayer) player).connection.send(new ClientboundSetEntityLinkPacket(this, this.getLeashHolder())); + player.containerMenu.sendAllDataToRemote(); // Paper - Fix inventory desync return InteractionResult.PASS; |