mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
SPIGOT-3423: Don't treat technical piston block as BlockStateMeta
This commit is contained in:
parent
e03b1a556d
commit
b5df1f59f7
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user