mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-14 03:21:57 +01:00
SPIGOT-3423: Don't treat technical piston block as BlockStateMeta
By: md_5 <git@md-5.net>
This commit is contained in:
parent
7145fd4941
commit
8f5c16fce3
@ -105,7 +105,6 @@ public final class CraftItemFactory implements ItemFactory {
|
|||||||
case SIGN:
|
case SIGN:
|
||||||
case MOB_SPAWNER:
|
case MOB_SPAWNER:
|
||||||
case NOTE_BLOCK:
|
case NOTE_BLOCK:
|
||||||
case PISTON_BASE:
|
|
||||||
case BREWING_STAND_ITEM:
|
case BREWING_STAND_ITEM:
|
||||||
case ENCHANTMENT_TABLE:
|
case ENCHANTMENT_TABLE:
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
@ -364,7 +364,6 @@ public final class CraftItemStack extends ItemStack {
|
|||||||
case SIGN:
|
case SIGN:
|
||||||
case MOB_SPAWNER:
|
case MOB_SPAWNER:
|
||||||
case NOTE_BLOCK:
|
case NOTE_BLOCK:
|
||||||
case PISTON_BASE:
|
|
||||||
case BREWING_STAND_ITEM:
|
case BREWING_STAND_ITEM:
|
||||||
case ENCHANTMENT_TABLE:
|
case ENCHANTMENT_TABLE:
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
@ -178,7 +178,6 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
|||||||
case SIGN:
|
case SIGN:
|
||||||
case MOB_SPAWNER:
|
case MOB_SPAWNER:
|
||||||
case NOTE_BLOCK:
|
case NOTE_BLOCK:
|
||||||
case PISTON_BASE:
|
|
||||||
case BREWING_STAND_ITEM:
|
case BREWING_STAND_ITEM:
|
||||||
case ENCHANTMENT_TABLE:
|
case ENCHANTMENT_TABLE:
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
@ -384,6 +383,8 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
|||||||
te = new TileEntityComparator();
|
te = new TileEntityComparator();
|
||||||
}
|
}
|
||||||
return new CraftComparator(material, (TileEntityComparator) te);
|
return new CraftComparator(material, (TileEntityComparator) te);
|
||||||
|
case PISTON_BASE:
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException("Missing blockState for " + material);
|
throw new IllegalStateException("Missing blockState for " + material);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user