Refactored the Explosive Charges to have a proper base class.
This commit is contained in:
parent
cac20388f8
commit
0a0742d8eb
6 changed files with 118 additions and 102 deletions
|
@ -24,7 +24,7 @@ import wayoftime.bloodmagic.anointment.AnointmentHolder;
|
|||
import wayoftime.bloodmagic.common.block.BlockShapedExplosive;
|
||||
import wayoftime.bloodmagic.common.block.BloodMagicBlocks;
|
||||
import wayoftime.bloodmagic.common.registries.BloodMagicEntityTypes;
|
||||
import wayoftime.bloodmagic.tile.TileShapedExplosive;
|
||||
import wayoftime.bloodmagic.tile.TileExplosiveCharge;
|
||||
|
||||
public class EntityShapedCharge extends ThrowableEntity
|
||||
{
|
||||
|
@ -75,9 +75,9 @@ public class EntityShapedCharge extends ThrowableEntity
|
|||
{
|
||||
this.getEntityWorld().setBlockState(blockpos, fallTile.with(BlockShapedExplosive.ATTACHED, faceHit));
|
||||
TileEntity tile = this.getEntityWorld().getTileEntity(blockpos);
|
||||
if (tile instanceof TileShapedExplosive)
|
||||
if (tile instanceof TileExplosiveCharge)
|
||||
{
|
||||
((TileShapedExplosive) tile).setAnointmentHolder(holder);
|
||||
((TileExplosiveCharge) tile).setAnointmentHolder(holder);
|
||||
}
|
||||
this.setDead();
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue