mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
SPIGOT-7371: Sign does not open edit text on placement
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ef776287cb
commit
605ce98727
@ -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);
|
||||
+ }
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user