Fixed bottom bed offset

This commit is contained in:
Shoghi Cervantes
2013-09-05 22:58:49 +02:00
parent 08d93fa021
commit 41b1a0f991
2 changed files with 26 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ class Player{
}
}
$this->isSleeping = $pos;
$this->teleport(new Position($pos->x + 0.5, $pos->y, $pos->z + 0.5, $this->level));
$this->teleport(new Position($pos->x + 0.5, $pos->y + 1, $pos->z + 0.5, $this->level), false, false, false, false);
if($this->entity instanceof Entity){
$this->entity->updateMetadata();
}