diff --git a/src/main/java/techreborn/blocks/BlockNuke.java b/src/main/java/techreborn/blocks/BlockNuke.java index 017b9fcb8..1bf2666db 100644 --- a/src/main/java/techreborn/blocks/BlockNuke.java +++ b/src/main/java/techreborn/blocks/BlockNuke.java @@ -67,7 +67,7 @@ public class BlockNuke extends BaseBlock implements ITexturedBlock { public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state) { super.onBlockAdded(worldIn, pos, state); if (worldIn.isBlockPowered(pos)) { - this.onBlockDestroyedByPlayer(worldIn, pos, state); + this.explode(worldIn, pos, state, null);); worldIn.setBlockToAir(pos); } } @@ -77,16 +77,11 @@ public class BlockNuke extends BaseBlock implements ITexturedBlock { */ public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) { if (worldIn.isBlockPowered(pos)) { - this.onBlockDestroyedByPlayer(worldIn, pos, state); + this.explode(worldIn, pos, state, null); worldIn.setBlockToAir(pos); } } - public void onBlockDestroyedByPlayer(World worldIn, BlockPos pos, IBlockState state) - { - this.explode(worldIn, pos, state, (EntityLivingBase)null); - } - @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ) { return false; //No flint and steel