Fixed position offset when sleeping on beds

This commit is contained in:
Shoghi Cervantes 2013-09-05 15:19:27 +02:00
parent ccac35d5a2
commit bb9923d210

View File

@ -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();
}