mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 15:17:17 +01:00
19 lines
1.1 KiB
Diff
19 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);
|
|
|