Factor invulnerableTicks into getNoDamageTicks. Fixes BUKKIT-1324
Dieser Commit ist enthalten in:
Ursprung
d7272f42ef
Commit
dba9349ed4
@ -850,4 +850,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
getHandle().abilities.canFly = value;
|
getHandle().abilities.canFly = value;
|
||||||
getHandle().updateAbilities();
|
getHandle().updateAbilities();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getNoDamageTicks() {
|
||||||
|
if (getHandle().invulnerableTicks > 0) {
|
||||||
|
return Math.max(getHandle().invulnerableTicks, getHandle().noDamageTicks);
|
||||||
|
} else {
|
||||||
|
return getHandle().noDamageTicks;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren