2019-03-24 11:34:57 +01:00
|
|
|
--- a/net/minecraft/server/ItemSign.java
|
|
|
|
+++ b/net/minecraft/server/ItemSign.java
|
|
|
|
@@ -4,6 +4,8 @@
|
|
|
|
|
|
|
|
public class ItemSign extends ItemBlockWallable {
|
|
|
|
|
|
|
|
+ public static boolean openSign; // CraftBukkit
|
2019-04-23 06:00:30 +02:00
|
|
|
+
|
2019-04-23 04:00:00 +02:00
|
|
|
public ItemSign(Item.Info item_info, Block block, Block block1) {
|
|
|
|
super(block, block1, item_info);
|
2019-03-24 11:34:57 +01:00
|
|
|
}
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -13,7 +15,10 @@
|
2019-03-24 11:34:57 +01:00
|
|
|
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 = true;
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
|
|
|
return flag;
|