SPIGOT-5809: block.getState() instanceof Sign for warped_sign missed

This commit is contained in:
md_5 2020-06-25 19:22:27 +10:00
parent 8dc1da156f
commit 9a3bd97f60
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
4 changed files with 6 additions and 0 deletions

View File

@ -323,6 +323,7 @@ public class CraftBlock implements Block {
case OAK_WALL_SIGN:
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
return new CraftSign(this);
case CHEST:
case TRAPPED_CHEST:

View File

@ -208,6 +208,7 @@ public final class CraftItemFactory implements ItemFactory {
case OAK_WALL_SIGN:
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case SPAWNER:
case BREWING_STAND:
case ENCHANTING_TABLE:

View File

@ -477,6 +477,7 @@ public final class CraftItemStack extends ItemStack {
case OAK_WALL_SIGN:
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case SPAWNER:
case BREWING_STAND:
case ENCHANTING_TABLE:

View File

@ -203,6 +203,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case OAK_WALL_SIGN:
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
case SPAWNER:
case BREWING_STAND:
case ENCHANTING_TABLE:
@ -308,6 +309,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case OAK_WALL_SIGN:
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
if (te == null) {
te = new TileEntitySign();
}
@ -537,6 +539,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case OAK_WALL_SIGN:
case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN:
case WARPED_SIGN:
valid = blockState instanceof CraftSign;
break;
case CHEST: