3 small fixes

This commit is contained in:
GameHerobrine 2023-10-27 19:40:35 +03:00
parent 7768ad03a9
commit 39bfa7115d
5 changed files with 23 additions and 2 deletions

View file

@ -128,6 +128,7 @@ class Player{
$this->isSleeping = $pos;
$this->sleepingTime = 0;
$this->teleport(new Position($pos->x + 0.5, $pos->y + 1, $pos->z + 0.5, $this->level), false, false, false, false);
//TODO change player hitbox size after he starts sleeping
if($this->entity instanceof Entity){
$this->entity->updateMetadata();
}