SPIGOT-7371: Sign does not open edit text on placement
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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);
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
Reference in New Issue
Block a user