3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

SPIGOT-5921: Improve setNoDamageTicks for Players

Dieser Commit ist enthalten in:
md_5 2020-07-02 11:18:03 +10:00
Ursprung 53849f57f5
Commit dc7c3c61fa
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: E8E901AC7C617C11

Datei anzeigen

@ -1399,6 +1399,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
}
@Override
public void setNoDamageTicks(int ticks) {
super.setNoDamageTicks(ticks);
getHandle().invulnerableTicks = ticks; // SPIGOT-5921: Update both for players, like the getter above
}
@Override
public void setFlySpeed(float value) {
validateSpeed(value);