mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 20:21:51 +01:00
2873869bb1
Signs no longer have a specific isEdiable state, the entire API in this regard needs updating/deprecation. The boolean field is completely gone, replaced by a uuid (which will need a new setEditingPlayer(UUID) method on the Sign interface), and the current upstream implementation of setEdiable simply flips the is_waxed state. This patch is hence not needed as it neither allows editing (which will be redone in a later patch) nor is required to copy the is_waxed boolean flag as it lives in the signs compound tag and is covered by applyTo.
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 af6d00adfe9b528f9854fbed174f7ae1f44522a6..a088111762fd36d4e6a8303e964b06c610590b44 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);
|
|
|