0.9.x setentitymotion packet added

This commit is contained in:
GameHerobrine 2023-02-21 11:42:37 +03:00
parent 532acb549d
commit 6cbc3824f3
7 changed files with 20 additions and 44 deletions

View file

@ -50,10 +50,7 @@ abstract class Creature extends Living{
$player->dataPacket($pk);
$pk = new SetEntityMotionPacket;
$pk->eid = $this->eid;
$pk->speedX = $this->speedX;
$pk->speedY = $this->speedY;
$pk->speedZ = $this->speedZ;
$pk->entities = [[$this->eid, $this->speedX, $this->speedY, $this->speedZ]];
$player->dataPacket($pk);
}