Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +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:
|
||||
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:
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren