1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +00:00

Fix incorrect explosion check

We should block explosions if the turtle is advanced /or/ if it's from
a fireball or entity, not if both.

Fixes #257
This commit is contained in:
SquidDev 2019-06-21 18:53:14 +01:00
parent 724441eddc
commit 904a168d5c

View File

@ -218,7 +218,7 @@ public void onBlockPlacedBy( World world, BlockPos pos, IBlockState state, Entit
@Deprecated
public float getExplosionResistance( Entity exploder )
{
if( getFamily() == ComputerFamily.Advanced && (exploder instanceof EntityLivingBase || exploder instanceof EntityFireball) )
if( getFamily() == ComputerFamily.Advanced || exploder instanceof EntityLivingBase || exploder instanceof EntityFireball )
{
return 2000;
}