mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
SPIGOT-5921: Improve setNoDamageTicks for Players
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ff07d4cc6f
commit
405cbc4ec8
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue