13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/net/minecraft/world/item/ItemSign.patch
CraftBukkit/Spigot d3a23f42c3 Update to Minecraft 1.21.2
By: md_5 <git@md-5.net>
2024-10-23 02:15:00 +11:00

24 Zeilen
857 B
Diff

--- a/net/minecraft/world/item/ItemSign.java
+++ b/net/minecraft/world/item/ItemSign.java
@@ -13,6 +13,8 @@
public class ItemSign extends ItemBlockWallable {
+ public static BlockPosition openSign; // CraftBukkit
+
public ItemSign(Block block, Block block1, Item.Info item_info) {
super(block, block1, EnumDirection.DOWN, item_info);
}
@@ -35,7 +37,10 @@
if (block instanceof BlockSign) {
BlockSign blocksign = (BlockSign) block;
- blocksign.openTextEdit(entityhuman, tileentitysign, true);
+ // CraftBukkit start - SPIGOT-4678
+ // blocksign.openTextEdit(entityhuman, tileentitysign, true);
+ ItemSign.openSign = blockposition;
+ // CraftBukkit end
}
}
}