mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fixing isInvincible() thanks bm01!
This commit is contained in:
parent
920f091a85
commit
bccb321ce1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user