SPIGOT-7371: Sign does not open edit text on placement
This commit is contained in:
parent
b4cf99d242
commit
5f7bd4d78a
@ -244,8 +244,8 @@
|
|||||||
+ // SPIGOT-4678
|
+ // SPIGOT-4678
|
||||||
+ if (this.item instanceof ItemSign && ItemSign.openSign != null) {
|
+ if (this.item instanceof ItemSign && ItemSign.openSign != null) {
|
||||||
+ try {
|
+ try {
|
||||||
+ if (world.getBlockEntity(blockposition) instanceof TileEntitySign tileentitysign) {
|
+ if (world.getBlockEntity(ItemSign.openSign) instanceof TileEntitySign tileentitysign) {
|
||||||
+ if (world.getBlockState(blockposition).getBlock() instanceof BlockSign blocksign) {
|
+ if (world.getBlockState(ItemSign.openSign).getBlock() instanceof BlockSign blocksign) {
|
||||||
+ blocksign.openTextEdit(entityhuman, tileentitysign, true);
|
+ blocksign.openTextEdit(entityhuman, tileentitysign, true);
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user