geforkt von Mirrors/Paper
SPIGOT-5921: Improve setNoDamageTicks for Players
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
ff07d4cc6f
Commit
405cbc4ec8
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren