SPIGOT-5856: Soul Campfire BlockState cannot be cast to Campfire

This commit is contained in:
md_5 2020-06-27 17:18:34 +10:00
parent d424351010
commit 983305bb4a
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
4 changed files with 6 additions and 0 deletions

View File

@ -453,6 +453,7 @@ public class CraftBlock implements Block {
case BLAST_FURNACE: case BLAST_FURNACE:
return new CraftBlastFurnace(this); return new CraftBlastFurnace(this);
case CAMPFIRE: case CAMPFIRE:
case SOUL_CAMPFIRE:
return new CraftCampfire(this); return new CraftCampfire(this);
case JIGSAW: case JIGSAW:
return new CraftJigsaw(this); return new CraftJigsaw(this);

View File

@ -246,6 +246,7 @@ public final class CraftItemFactory implements ItemFactory {
case BELL: case BELL:
case BLAST_FURNACE: case BLAST_FURNACE:
case CAMPFIRE: case CAMPFIRE:
case SOUL_CAMPFIRE:
case JIGSAW: case JIGSAW:
case LECTERN: case LECTERN:
case SMOKER: case SMOKER:

View File

@ -515,6 +515,7 @@ public final class CraftItemStack extends ItemStack {
case BELL: case BELL:
case BLAST_FURNACE: case BLAST_FURNACE:
case CAMPFIRE: case CAMPFIRE:
case SOUL_CAMPFIRE:
case JIGSAW: case JIGSAW:
case LECTERN: case LECTERN:
case SMOKER: case SMOKER:

View File

@ -241,6 +241,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
case BELL: case BELL:
case BLAST_FURNACE: case BLAST_FURNACE:
case CAMPFIRE: case CAMPFIRE:
case SOUL_CAMPFIRE:
case JIGSAW: case JIGSAW:
case LECTERN: case LECTERN:
case SMOKER: case SMOKER:
@ -497,6 +498,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
} }
return new CraftBlastFurnace(material, (TileEntityBlastFurnace) te); return new CraftBlastFurnace(material, (TileEntityBlastFurnace) te);
case CAMPFIRE: case CAMPFIRE:
case SOUL_CAMPFIRE:
if (te == null) { if (te == null) {
te = new TileEntityCampfire(); te = new TileEntityCampfire();
} }
@ -680,6 +682,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
valid = blockState instanceof CraftBlastFurnace; valid = blockState instanceof CraftBlastFurnace;
break; break;
case CAMPFIRE: case CAMPFIRE:
case SOUL_CAMPFIRE:
valid = blockState instanceof CraftCampfire; valid = blockState instanceof CraftCampfire;
break; break;
case JIGSAW: case JIGSAW: