fixes from npe 0.9 test

This commit is contained in:
root 2023-08-31 04:09:08 +03:00
parent 083ace7eb1
commit 385c8a1bc0
3 changed files with 14 additions and 7 deletions

View file

@ -766,12 +766,12 @@ class Entity extends Position
$this->updateLast();
$players = $this->server->api->player->getAll($this->level);
if($this->player instanceof Player){
console("gujnbguib");
//console("gujnbguib");
unset($players[$this->player->CID]);
$pk = new MovePlayerPacket();
$pk->eid = $this->eid;
$pk->x = $this->x;
$pk->y = $this->y + $this->getEyeHeight();
$pk->y = $this->y;
$pk->z = $this->z;
$pk->yaw = $this->yaw;
$pk->pitch = $this->pitch;