13
0
geforkt von Mirrors/Paper

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 @Override
public void setFlySpeed(float value) { public void setFlySpeed(float value) {
validateSpeed(value); validateSpeed(value);