geforkt von Mirrors/Paper
7c2dc4b342
* finish implementing all adventure components in codecs * add some initial tests * Add round trip tests for text and translatable components * Add more round trip test data (score component is failing) * Add more round trip test data * Fix SCORE_COMPONENT_MAP_CODEC * Improve test failure messages * Add failure cases * Add a couple more test data * Make use of AdventureCodecs * Update patches after rebase * Squash changes into adventure patch * Fix AT formatting * update comment --------- Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
20 Zeilen
1.1 KiB
Diff
20 Zeilen
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 eca08037fd2742e6e969f91367a0ae053f61a23b..d2ea1b1ea4ac37af09985e1c9da14049c262df7a 100644
|
|
--- a/src/main/java/net/minecraft/world/item/RecordItem.java
|
|
+++ b/src/main/java/net/minecraft/world/item/RecordItem.java
|
|
@@ -46,7 +46,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);
|
|
|