mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
SPIGOT-5856: Soul Campfire BlockState cannot be cast to Campfire
This commit is contained in:
parent
d424351010
commit
983305bb4a
@ -453,6 +453,7 @@ public class CraftBlock implements Block {
|
||||
case BLAST_FURNACE:
|
||||
return new CraftBlastFurnace(this);
|
||||
case CAMPFIRE:
|
||||
case SOUL_CAMPFIRE:
|
||||
return new CraftCampfire(this);
|
||||
case JIGSAW:
|
||||
return new CraftJigsaw(this);
|
||||
|
@ -246,6 +246,7 @@ public final class CraftItemFactory implements ItemFactory {
|
||||
case BELL:
|
||||
case BLAST_FURNACE:
|
||||
case CAMPFIRE:
|
||||
case SOUL_CAMPFIRE:
|
||||
case JIGSAW:
|
||||
case LECTERN:
|
||||
case SMOKER:
|
||||
|
@ -515,6 +515,7 @@ public final class CraftItemStack extends ItemStack {
|
||||
case BELL:
|
||||
case BLAST_FURNACE:
|
||||
case CAMPFIRE:
|
||||
case SOUL_CAMPFIRE:
|
||||
case JIGSAW:
|
||||
case LECTERN:
|
||||
case SMOKER:
|
||||
|
@ -241,6 +241,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||
case BELL:
|
||||
case BLAST_FURNACE:
|
||||
case CAMPFIRE:
|
||||
case SOUL_CAMPFIRE:
|
||||
case JIGSAW:
|
||||
case LECTERN:
|
||||
case SMOKER:
|
||||
@ -497,6 +498,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||
}
|
||||
return new CraftBlastFurnace(material, (TileEntityBlastFurnace) te);
|
||||
case CAMPFIRE:
|
||||
case SOUL_CAMPFIRE:
|
||||
if (te == null) {
|
||||
te = new TileEntityCampfire();
|
||||
}
|
||||
@ -680,6 +682,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
|
||||
valid = blockState instanceof CraftBlastFurnace;
|
||||
break;
|
||||
case CAMPFIRE:
|
||||
case SOUL_CAMPFIRE:
|
||||
valid = blockState instanceof CraftCampfire;
|
||||
break;
|
||||
case JIGSAW:
|
||||
|
Loading…
Reference in New Issue
Block a user