From bb9923d21024e596752add752563756814050b3d Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 5 Sep 2013 15:19:27 +0200 Subject: [PATCH] Fixed position offset when sleeping on beds --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index c0421e9d..64787904 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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(); }