SPIGOT-7371: Sign does not open edit text on placement

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-06-08 08:03:24 +10:00
parent ef776287cb
commit 605ce98727

View File

@ -244,8 +244,8 @@
+ // SPIGOT-4678
+ if (this.item instanceof ItemSign && ItemSign.openSign != null) {
+ try {
+ if (world.getBlockEntity(blockposition) instanceof TileEntitySign tileentitysign) {
+ if (world.getBlockState(blockposition).getBlock() instanceof BlockSign blocksign) {
+ if (world.getBlockEntity(ItemSign.openSign) instanceof TileEntitySign tileentitysign) {
+ if (world.getBlockState(ItemSign.openSign).getBlock() instanceof BlockSign blocksign) {
+ blocksign.openTextEdit(entityhuman, tileentitysign, true);
+ }
+ }