SPIGOT-3423: Don't treat technical piston block as BlockStateMeta

This commit is contained in:
md_5 2017-07-16 10:48:21 +10:00
parent e03b1a556d
commit b5df1f59f7
3 changed files with 2 additions and 3 deletions

View File

@ -105,7 +105,6 @@ public final class CraftItemFactory implements ItemFactory {
case SIGN:
case MOB_SPAWNER:
case NOTE_BLOCK:
case PISTON_BASE:
case BREWING_STAND_ITEM:
case ENCHANTMENT_TABLE:
case COMMAND:

View File

@ -364,7 +364,6 @@ public final class CraftItemStack extends ItemStack {
case SIGN:
case MOB_SPAWNER:
case NOTE_BLOCK:
case PISTON_BASE:
case BREWING_STAND_ITEM:
case ENCHANTMENT_TABLE:
case COMMAND:

View File

@ -178,7 +178,6 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case SIGN:
case MOB_SPAWNER:
case NOTE_BLOCK:
case PISTON_BASE:
case BREWING_STAND_ITEM:
case ENCHANTMENT_TABLE:
case COMMAND:
@ -384,6 +383,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
te = new TileEntityComparator();
}
return new CraftComparator(material, (TileEntityComparator) te);
case PISTON_BASE:
default:
throw new IllegalStateException("Missing blockState for " + material);
}