[SPIGOT-5833] Player#setWalkSpeed not working Created: 26/Jun/20 Updated: 26/Jun/20 Resolved: 26/Jun/20 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Shane Bee | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | 1.16.1 |
Attachments: |
![]() |
Version: | git-Spigot-8fc58f1-709b003 (MC: 1.16.1) |
Plugin: | just the TesterPlugin |
Guidelines Read: | Yes |
Description |
Whilst working on a plugin I noticed that the Player#setWalkSpeed method was not working. Simple Test: player.setWalkSpeed(0.5f); Expected: This value should speed the player up. Result: The field of view "zooms in" as if the player were to slow down. Their actual movement speed does not change. player.setWalkSpeed(0.01f); Expected: This value should slow the player down. Result: The field of view "zooms out" as if the player were going to be moving very fast. Their actual movement speed does not change. Have I tested on vanilla: Including a plugin: /test [speed = float]
You can choose your speed here, ex: /test 0.5 or /test 0.01 or you can simply negate the float and it will reset back to default 0.2f |
Comments |
Comment by Shane Bee [ 26/Jun/20 ] |
Awesome, thanks for the super fast fix, works like a charm, I appreciate it! |
Comment by md_5 [ 26/Jun/20 ] |
It's now a combination of that and the MOVEMENT_SPEED attribute. |