mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-15 07:05:44 +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
|
@Override
|
||||||
public void setFlySpeed(float value) {
|
public void setFlySpeed(float value) {
|
||||||
validateSpeed(value);
|
validateSpeed(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user