mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-04 03:17:55 +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:
@@ -218,7 +218,7 @@ public class BlockTurtle extends BlockComputerBase
|
||||
@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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user