3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

SPIGOT-5833: Player#setWalkSpeed not working

Dieser Commit ist enthalten in:
md_5 2020-06-26 17:56:49 +10:00
Ursprung 709b003fee
Commit baadbf3f76
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: E8E901AC7C617C11

Datei anzeigen

@ -1399,6 +1399,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
EntityPlayer player = getHandle(); EntityPlayer player = getHandle();
player.abilities.walkSpeed = value / 2f; player.abilities.walkSpeed = value / 2f;
player.updateAbilities(); player.updateAbilities();
getHandle().getAttributeInstance(GenericAttributes.MOVEMENT_SPEED).setValue(player.abilities.walkSpeed); // SPIGOT-5833: combination of the two in 1.16+
} }
@Override @Override