mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
9da047989c
By: md_5 <git@md-5.net>
23 lines
865 B
Diff
23 lines
865 B
Diff
--- a/net/minecraft/world/item/ItemSign.java
|
|
+++ b/net/minecraft/world/item/ItemSign.java
|
|
@@ -10,6 +10,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);
|
|
}
|
|
@@ -19,7 +21,10 @@
|
|
boolean flag = super.a(blockposition, world, entityhuman, itemstack, iblockdata);
|
|
|
|
if (!world.isClientSide && !flag && entityhuman != null) {
|
|
- entityhuman.openSign((TileEntitySign) world.getTileEntity(blockposition));
|
|
+ // CraftBukkit start - SPIGOT-4678
|
|
+ // entityhuman.openSign((TileEntitySign) world.getTileEntity(blockposition));
|
|
+ ItemSign.openSign = blockposition;
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
return flag;
|