mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-07 04:22:53 +00:00
parent
c0f982dc97
commit
db2616d1c0
@ -172,9 +172,9 @@ public class BlockTurtle extends BlockComputerBase<TileTurtle> implements IWater
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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 )
|
if( getFamily() == ComputerFamily.ADVANCED || exploder instanceof LivingEntity || exploder instanceof DamagingProjectileEntity )
|
||||||
{
|
{
|
||||||
return 2000;
|
return 2000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user