PaperMC/paper-server/nms-patches/net/minecraft/world/item/ItemSign.patch
CraftBukkit/Spigot 8b26bb8f3e Update to Minecraft 1.19.3
By: md_5 <git@md-5.net>
2022-12-08 03:00:00 +11:00

23 lines
920 B
Diff

--- a/net/minecraft/world/item/ItemSign.java
+++ b/net/minecraft/world/item/ItemSign.java
@@ -11,6 +11,8 @@
public class ItemSign extends ItemBlockWallable {
+ public static BlockPosition openSign; // CraftBukkit
+
public ItemSign(Item.Info item_info, Block block, Block block1) {
super(block, block1, item_info, EnumDirection.DOWN);
}
@@ -20,7 +22,10 @@
boolean flag = super.updateCustomBlockEntityTag(blockposition, world, entityhuman, itemstack, iblockdata);
if (!world.isClientSide && !flag && entityhuman != null) {
- entityhuman.openTextEdit((TileEntitySign) world.getBlockEntity(blockposition));
+ // CraftBukkit start - SPIGOT-4678
+ // entityhuman.openTextEdit((TileEntitySign) world.getBlockEntity(blockposition));
+ ItemSign.openSign = blockposition;
+ // CraftBukkit end
}
return flag;