PaperMC/paper-server/patches/sources/net/minecraft/world/item/SignItem.java.patch

24 lines
866 B
Diff
Raw Normal View History

--- a/net/minecraft/world/item/SignItem.java
+++ b/net/minecraft/world/item/SignItem.java
@@ -13,6 +13,8 @@
public class SignItem extends StandingAndWallBlockItem {
+ public static BlockPos openSign; // CraftBukkit
+
public SignItem(Block standingBlock, Block wallBlock, Item.Properties settings) {
super(standingBlock, wallBlock, Direction.DOWN, settings);
}
@@ -35,7 +37,10 @@
if (block instanceof SignBlock) {
SignBlock blocksign = (SignBlock) block;
- blocksign.openTextEdit(player, tileentitysign, true);
+ // CraftBukkit start - SPIGOT-4678
+ // blocksign.openTextEdit(entityhuman, tileentitysign, true);
+ SignItem.openSign = pos;
+ // CraftBukkit end
}
}
}