Merge branch 'minor-next' into major-next

This commit is contained in:
Dylan K. Taylor
2024-03-14 12:47:18 +00:00
70 changed files with 1196 additions and 555 deletions

View File

@ -635,6 +635,10 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
$this->displayName = $ev->getNewName();
}
public function canBeRenamed() : bool{
return false;
}
/**
* Returns the player's locale, e.g. en_US.
*/
@ -1394,7 +1398,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;
}