mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
SPIGOT-3423: Don't treat technical piston block as BlockStateMeta
This commit is contained in:
parent
e03b1a556d
commit
b5df1f59f7
3 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue