Paper/patches/server/0835-remove-duplicate-animate-packet-for-records.patch
2024-04-26 17:00:40 -07:00

20 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Thu, 1 Dec 2022 12:42:18 -0800
Subject: [PATCH] remove duplicate animate packet for records
diff --git a/src/main/java/net/minecraft/world/item/RecordItem.java b/src/main/java/net/minecraft/world/item/RecordItem.java
index 115ac21ea743d30fe8ba62b206da4f5a1bd56cc4..815220924753e87a8f485c2c928222561c726855 100644
--- a/src/main/java/net/minecraft/world/item/RecordItem.java
+++ b/src/main/java/net/minecraft/world/item/RecordItem.java
@@ -47,7 +47,7 @@ public class RecordItem extends Item {
ItemStack itemstack = context.getItemInHand();
if (!world.isClientSide) {
- if (true) return InteractionResult.SUCCESS; // CraftBukkit - handled in ItemStack
+ if (true) return InteractionResult.sidedSuccess(world.isClientSide); // CraftBukkit - handled in ItemStack // Paper - fix duplicate animate packet
Player entityhuman = context.getPlayer();
BlockEntity tileentity = world.getBlockEntity(blockposition);