Small movements may not trigger PlayerMoveEvent
until the player rotates
#6590
Labels
Category: API
Related to the plugin API
Opinions Wanted
Request for comments & opinions from the community
Status: Debugged
Cause of the bug has been found, but not fixed
Plugin information
Bug happens without plugins
Problem description
Steps to reproduce:
PlayerMoveEvent::getFrom()
andPlayerMoveEvent::getTo()
Plugin Code
Results
string(4) "FROM"
float(-829.7068)
float(67)
float(1219.9551)
string(2) "TO"
float(-829.7025)
float(67)
float(1219.9567)
As you can see, there are subtle differences in the player's X and Z position.
I'm not entirely sure if this is an expected behavior, though. I have performed some researches, but couldn't find an issue related with this behavior specifically.
Expected behaviour
The X and Z position should be the same when rotating the player.
PocketMine-MP version
5.23.2
PHP version
8.2.17
Server OS
win
Game version (if applicable)
Windows
The text was updated successfully, but these errors were encountered: