mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +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 |     @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; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SquidDev
					SquidDev