Fixing isInvincible() thanks bm01!

This commit is contained in:
nossr50 2012-03-02 15:52:33 -08:00
parent 920f091a85
commit bccb321ce1

View File

@ -65,14 +65,10 @@ public class m
{ {
//So apparently if you do more damage to a LivingEntity than its last damage int you bypass the invincibility //So apparently if you do more damage to a LivingEntity than its last damage int you bypass the invincibility
//So yeah, this is for that //So yeah, this is for that
if(le.getNoDamageTicks() < le.getMaximumNoDamageTicks()/2.0F) if(le.getNoDamageTicks() > le.getMaximumNoDamageTicks() / 2.0F && event.getDamage() <= le.getLastDamage())
{ return true;
if(event.getDamage() <= le.getLastDamage()) else
return true; return false;
else
return false;
}
return true;
} }
public static boolean isDouble(String string) public static boolean isDouble(String string)