Fix nukes.
This commit is contained in:
parent
c058e2fbee
commit
77280fad79
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ public class BlockNuke extends BaseBlock implements ITexturedBlock {
|
||||||
/**
|
/**
|
||||||
* Called when a neighboring block changes.
|
* Called when a neighboring block changes.
|
||||||
*/
|
*/
|
||||||
public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock) {
|
@Override
|
||||||
|
public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos p_189540_5_) {
|
||||||
if (worldIn.isBlockPowered(pos)) {
|
if (worldIn.isBlockPowered(pos)) {
|
||||||
this.explode(worldIn, pos, state, null);
|
this.explode(worldIn, pos, state, null);
|
||||||
worldIn.setBlockToAir(pos);
|
worldIn.setBlockToAir(pos);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue