While a player appears to be in a bed, PocketMine-MP does not consider them to be in the bed. Instead, they are still thought to be standing where they were when they entered the bed.
This can be observed by trying to place blocks in the player's location after they appear to enter the bed. Shooting arrows through the apparently empty space will also cause the sleeping player to take damage.
Steps to reproduce the issue
Have player1 enter a bed.
Have player2 attempt to place blocks where player1 was before entering the bed.
Issue description
While a player appears to be in a bed, PocketMine-MP does not consider them to be in the bed. Instead, they are still thought to be standing where they were when they entered the bed.
This can be observed by trying to place blocks in the player's location after they appear to enter the bed. Shooting arrows through the apparently empty space will also cause the sleeping player to take damage.
Steps to reproduce the issue
OS and versions