PocketMine-MP
PocketMine-MP copied to clipboard
Add API functions for Fly speed.
Introduction
Since the new 1.19.10 update added the Walk and Fly speed feature to the new AbilityPacket. These values were hardcoded
Changes
API changes
Added $player->setFlySpeed(); Added $player->getFlySpeed(); Added $player->resetFlySpeed();
Added $player->setWalkSpeed(); Added $player->getWalkSpeed(); Added $player->resetWalkSpeed();
Tests
https://user-images.githubusercontent.com/34657342/178804701-eee1ee4c-cc99-4d72-9b1f-bf3c0a47aa89.mp4
I'm not clear on what the value of setWalkSpeed is, since we already have an attribute-controlled setMovementSpeed which influences this. I'm open to reasoning.
Well I've removed that function already because of that reason. But I forgot to push it. I'm on vacation right now so haven't really had the time to commit the changes.
ok but there won't be any chunk bug on some "big" server ?
@TheDataLioness any updates for this PR? If not it will be closed when API 5 releases
@jasonwynn10 haven't touched PM in ages.
Closing due to lack of activity on review comments.