From f73eefd668d2ecf644bbf6305124e5efd036feba Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sun, 2 Apr 2023 11:05:30 -0700 Subject: [PATCH] Remove duplicate animate packet for records (#8600) --- ...duplicate-animate-packet-for-records.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/server/remove-duplicate-animate-packet-for-records.patch diff --git a/patches/server/remove-duplicate-animate-packet-for-records.patch b/patches/server/remove-duplicate-animate-packet-for-records.patch new file mode 100644 index 0000000000..3b3150f0a5 --- /dev/null +++ b/patches/server/remove-duplicate-animate-packet-for-records.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Jake Potrebic +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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/item/RecordItem.java ++++ b/src/main/java/net/minecraft/world/item/RecordItem.java +@@ -0,0 +0,0 @@ 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); +