pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.28k stars 1.56k forks source link

Players are not where they appear to be when sleeping in bed #2715

Open dktapps opened 5 years ago

dktapps commented 5 years ago

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

  1. Have player1 enter a bed.
  2. Have player2 attempt to place blocks where player1 was before entering the bed.

OS and versions

jasonw4331 commented 5 years ago

Does this make it so players cannot be attacked in bed?