3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

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;
}
}
}