mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 16:49:58 +01:00
Fixing isInvincible() thanks bm01!
This commit is contained in:
parent
920f091a85
commit
bccb321ce1
@ -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 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())
|
||||||
{
|
|
||||||
if(event.getDamage() <= le.getLastDamage())
|
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isDouble(String string)
|
public static boolean isDouble(String string)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user