Support for 1.20.70

This commit is contained in:
Dylan K. Taylor
2024-03-13 14:53:27 +00:00
parent e105c9bd76
commit ba48f258f3
18 changed files with 130 additions and 204 deletions

View File

@ -1393,7 +1393,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
public function setMotion(Vector3 $motion) : bool{
if(parent::setMotion($motion)){
$this->broadcastMotion();
$this->getNetworkSession()->sendDataPacket(SetActorMotionPacket::create($this->id, $motion));
$this->getNetworkSession()->sendDataPacket(SetActorMotionPacket::create($this->id, $motion, tick: 0));
return true;
}