From baadbf3f7644b85a8c6b70862bc81e017af567af Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 26 Jun 2020 17:56:49 +1000 Subject: [PATCH] SPIGOT-5833: Player#setWalkSpeed not working --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 27289d0cf2..f9867a5620 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -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