parent
c0f982dc97
commit
db2616d1c0
|
@ -172,9 +172,9 @@ public void setPlacedBy( @Nonnull World world, @Nonnull BlockPos pos, @Nonnull B
|
|||
}
|
||||
|
||||
@Override
|
||||
public float getExplosionResistance( BlockState state, IBlockReader world, BlockPos pos, Explosion explosion )
|
||||
public float getExplosionResistance( BlockState state, IBlockReader world, BlockPos pos, @Nullable Explosion explosion )
|
||||
{
|
||||
Entity exploder = explosion.getExploder();
|
||||
Entity exploder = explosion == null ? null : explosion.getExploder();
|
||||
if( getFamily() == ComputerFamily.ADVANCED || exploder instanceof LivingEntity || exploder instanceof DamagingProjectileEntity )
|
||||
{
|
||||
return 2000;
|
||||
|
|
Loading…
Reference in New Issue