Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
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().updateAbilities();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNoDamageTicks() {
|
||||
if (getHandle().invulnerableTicks > 0) {
|
||||
return Math.max(getHandle().invulnerableTicks, getHandle().noDamageTicks);
|
||||
} else {
|
||||
return getHandle().noDamageTicks;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren