Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-5856: Soul Campfire BlockState cannot be cast to Campfire
Dieser Commit ist enthalten in:
Ursprung
d424351010
Commit
983305bb4a
@ -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);
|
||||||
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren