SPIGOT-5809: block.getState() wall signs too

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2020-06-25 20:08:32 +10:00
parent 3933b98a60
commit 4478e7e0d8
4 changed files with 12 additions and 0 deletions

View File

@ -316,6 +316,7 @@ public class CraftBlock implements Block {
case BIRCH_SIGN: case BIRCH_SIGN:
case BIRCH_WALL_SIGN: case BIRCH_WALL_SIGN:
case CRIMSON_SIGN: case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN: case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN: case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN: case JUNGLE_SIGN:
@ -325,6 +326,7 @@ public class CraftBlock implements Block {
case SPRUCE_SIGN: case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN: case SPRUCE_WALL_SIGN:
case WARPED_SIGN: case WARPED_SIGN:
case WARPED_WALL_SIGN:
return new CraftSign(this); return new CraftSign(this);
case CHEST: case CHEST:
case TRAPPED_CHEST: case TRAPPED_CHEST:

View File

@ -201,6 +201,7 @@ public final class CraftItemFactory implements ItemFactory {
case BIRCH_SIGN: case BIRCH_SIGN:
case BIRCH_WALL_SIGN: case BIRCH_WALL_SIGN:
case CRIMSON_SIGN: case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN: case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN: case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN: case JUNGLE_SIGN:
@ -210,6 +211,7 @@ public final class CraftItemFactory implements ItemFactory {
case SPRUCE_SIGN: case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN: case SPRUCE_WALL_SIGN:
case WARPED_SIGN: case WARPED_SIGN:
case WARPED_WALL_SIGN:
case SPAWNER: case SPAWNER:
case BREWING_STAND: case BREWING_STAND:
case ENCHANTING_TABLE: case ENCHANTING_TABLE:

View File

@ -470,6 +470,7 @@ public final class CraftItemStack extends ItemStack {
case BIRCH_SIGN: case BIRCH_SIGN:
case BIRCH_WALL_SIGN: case BIRCH_WALL_SIGN:
case CRIMSON_SIGN: case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN: case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN: case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN: case JUNGLE_SIGN:
@ -479,6 +480,7 @@ public final class CraftItemStack extends ItemStack {
case SPRUCE_SIGN: case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN: case SPRUCE_WALL_SIGN:
case WARPED_SIGN: case WARPED_SIGN:
case WARPED_WALL_SIGN:
case SPAWNER: case SPAWNER:
case BREWING_STAND: case BREWING_STAND:
case ENCHANTING_TABLE: case ENCHANTING_TABLE:

View File

@ -196,6 +196,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BIRCH_SIGN: case BIRCH_SIGN:
case BIRCH_WALL_SIGN: case BIRCH_WALL_SIGN:
case CRIMSON_SIGN: case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN: case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN: case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN: case JUNGLE_SIGN:
@ -205,6 +206,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SPRUCE_SIGN: case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN: case SPRUCE_WALL_SIGN:
case WARPED_SIGN: case WARPED_SIGN:
case WARPED_WALL_SIGN:
case SPAWNER: case SPAWNER:
case BREWING_STAND: case BREWING_STAND:
case ENCHANTING_TABLE: case ENCHANTING_TABLE:
@ -303,6 +305,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BIRCH_SIGN: case BIRCH_SIGN:
case BIRCH_WALL_SIGN: case BIRCH_WALL_SIGN:
case CRIMSON_SIGN: case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN: case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN: case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN: case JUNGLE_SIGN:
@ -312,6 +315,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SPRUCE_SIGN: case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN: case SPRUCE_WALL_SIGN:
case WARPED_SIGN: case WARPED_SIGN:
case WARPED_WALL_SIGN:
if (te == null) { if (te == null) {
te = new TileEntitySign(); te = new TileEntitySign();
} }
@ -534,6 +538,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BIRCH_SIGN: case BIRCH_SIGN:
case BIRCH_WALL_SIGN: case BIRCH_WALL_SIGN:
case CRIMSON_SIGN: case CRIMSON_SIGN:
case CRIMSON_WALL_SIGN:
case DARK_OAK_SIGN: case DARK_OAK_SIGN:
case DARK_OAK_WALL_SIGN: case DARK_OAK_WALL_SIGN:
case JUNGLE_SIGN: case JUNGLE_SIGN:
@ -543,6 +548,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SPRUCE_SIGN: case SPRUCE_SIGN:
case SPRUCE_WALL_SIGN: case SPRUCE_WALL_SIGN:
case WARPED_SIGN: case WARPED_SIGN:
case WARPED_WALL_SIGN:
valid = blockState instanceof CraftSign; valid = blockState instanceof CraftSign;
break; break;
case CHEST: case CHEST: