ToCraft / woodwalkers-mod

Transform into a mob!
https://discord.gg/Y3KqxWDUYy
MIT License
8 stars 2 forks source link

flySpeed configuration also modifies creative native speed #123

Closed ZRunner closed 3 weeks ago

ZRunner commented 3 weeks ago

Mod loader

Forge

Minecraft version

1.20.1

Woodwalkers version

5

CraftedCore version

5.3

Modloader version

47.3.7

The latest.log file

N/A

Issue description

When editing the flySpeed option in the walkers.json config file, the modified value is correctly applied when the player transforms into a mob. However, the fly speed does not revert to the default value of 0.05 when the player returns to their normal form. This behavior is fine in survival mode but causes issues in creative mode, as the player's fly speed remains altered (usually slower) even after un-transforming, instead of reverting to the default 0.05 speed.

Steps to reproduce

  1. Edit the flySpeed option in the walkers.json config file, setting it to a lower or higher value (e.g., 0.02).
  2. Open a world in creative mode, either a new save or an existing one.
  3. Run the command /data get entity @s abilities.flySpeed to check your current fly speed (which should still be 0.05).
  4. Transform into a flying mob; your fly speed should now change to the configured value (e.g., 0.02).
  5. Un-transform back into the default player form, then run the command again to check your fly speed. Notice that it hasn't reverted to the vanilla value of 0.05.

Other

No response