mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
SPIGOT-5921: Improve setNoDamageTicks for Players
This commit is contained in:
parent
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);
|
||||
|
Loading…
Reference in New Issue
Block a user