geforkt von Mirrors/Paper
SPIGOT-5921: Improve setNoDamageTicks for Players
Dieser Commit ist enthalten in:
Ursprung
53849f57f5
Commit
dc7c3c61fa
@ -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