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,15 +65,11 @@ public class m
{
//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
if(le.getNoDamageTicks() < le.getMaximumNoDamageTicks()/2.0F)
{
if(event.getDamage() <= le.getLastDamage())
if(le.getNoDamageTicks() > le.getMaximumNoDamageTicks() / 2.0F && event.getDamage() <= le.getLastDamage())
return true;
else
return false;
}
return true;
}
public static boolean isDouble(String string)
{