mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
23 lines
956 B
Diff
23 lines
956 B
Diff
|
--- a/net/minecraft/world/item/SignItem.java
|
||
|
+++ b/net/minecraft/world/item/SignItem.java
|
||
|
@@ -11,6 +_,7 @@
|
||
|
import net.minecraft.world.level.block.state.BlockState;
|
||
|
|
||
|
public class SignItem extends StandingAndWallBlockItem {
|
||
|
+ public static BlockPos openSign; // CraftBukkit
|
||
|
public SignItem(Block standingBlock, Block wallBlock, Item.Properties properties) {
|
||
|
super(standingBlock, wallBlock, Direction.DOWN, properties);
|
||
|
}
|
||
|
@@ -27,7 +_,10 @@
|
||
|
&& player != null
|
||
|
&& level.getBlockEntity(pos) instanceof SignBlockEntity signBlockEntity
|
||
|
&& level.getBlockState(pos).getBlock() instanceof SignBlock signBlock) {
|
||
|
- signBlock.openTextEdit(player, signBlockEntity, true);
|
||
|
+ // CraftBukkit start - SPIGOT-4678
|
||
|
+ // signBlock.openTextEdit(player, signBlockEntity, true);
|
||
|
+ SignItem.openSign = pos;
|
||
|
+ // CraftBukkit end
|
||
|
}
|
||
|
|
||
|
return flag;
|