PaperMC/paper-server/patches/sources/net/minecraft/world/item/SignItem.java.patch
CraftBukkit/Spigot 30e4583dbe Remap CraftBukkit to Mojang+Yarn Mappings
By: Initial Source <noreply+automated@papermc.io>
2024-12-11 22:26:55 +01:00

23 lines
866 B
Diff

--- 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
}
}
}