mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Fixed position offset when sleeping on beds
This commit is contained in:
@@ -301,7 +301,7 @@ class Player{
|
||||
}
|
||||
}
|
||||
$this->isSleeping = $pos;
|
||||
$this->teleport(new Position($pos->x, $pos->y, $pos->z, $this->level));
|
||||
$this->teleport(new Position($pos->x + 0.5, $pos->y, $pos->z + 0.5, $this->level));
|
||||
if($this->entity instanceof Entity){
|
||||
$this->entity->updateMetadata();
|
||||
}
|
||||
|
Reference in New Issue
Block a user