13
0
geforkt von Mirrors/Paper

Factor invulnerableTicks into getNoDamageTicks. Fixes BUKKIT-1324

Dieser Commit ist enthalten in:
feildmaster 2012-07-04 15:12:29 -05:00
Ursprung d7272f42ef
Commit dba9349ed4

Datei anzeigen

@ -850,4 +850,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
getHandle().abilities.canFly = value;
getHandle().updateAbilities();
}
@Override
public int getNoDamageTicks() {
if (getHandle().invulnerableTicks > 0) {
return Math.max(getHandle().invulnerableTicks, getHandle().noDamageTicks);
} else {
return getHandle().noDamageTicks;
}
}
}