mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Fixed position offset when sleeping on beds
This commit is contained in:
parent
ccac35d5a2
commit
bb9923d210
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ class Player{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->isSleeping = $pos;
|
$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){
|
if($this->entity instanceof Entity){
|
||||||
$this->entity->updateMetadata();
|
$this->entity->updateMetadata();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue