mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-15 11:45:42 +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:
parent
724441eddc
commit
904a168d5c
@ -218,7 +218,7 @@ public class BlockTurtle extends BlockComputerBase
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public float getExplosionResistance( Entity exploder )
|
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;
|
return 2000;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user