mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Updated existing packets and added new ones
This commit is contained in:
@ -1451,7 +1451,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
if($this->chunk !== null){
|
||||
$this->level->addEntityMotion($this->chunk->getX(), $this->chunk->getZ(), $this->getId(), $this->motionX, $this->motionY, $this->motionZ);
|
||||
$pk = new SetEntityMotionPacket();
|
||||
$pk->entities[] = [0, $mot->x, $mot->y, $mot->z];
|
||||
$pk->eid = 0;
|
||||
$pk->motionX = $mot->x;
|
||||
$pk->motionY = $mot->y;
|
||||
$pk->motionZ = $mot->z;
|
||||
$this->dataPacket($pk);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user