mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-5833: Player#setWalkSpeed not working
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4208414e72
commit
b60f49f0ea
1 changed files with 1 additions and 0 deletions
|
@ -1399,6 +1399,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
EntityPlayer player = getHandle();
|
||||
player.abilities.walkSpeed = value / 2f;
|
||||
player.updateAbilities();
|
||||
getHandle().getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(player.abilities.walkSpeed); // SPIGOT-5833: combination of the two in 1.16+
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue