mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
8b26bb8f3e
By: md_5 <git@md-5.net>
24 lines
920 B
Diff
24 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;
|