Protocol changes for 1.17.0

This commit is contained in:
Dylan K. Taylor
2021-06-08 19:40:28 +01:00
parent f3e1c82246
commit 57d274901d
13 changed files with 235 additions and 15 deletions

View File

@ -215,6 +215,7 @@ use function min;
use function preg_match;
use function round;
use function spl_object_hash;
use function sprintf;
use function sqrt;
use function strlen;
use function strpos;
@ -2279,6 +2280,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$pk->experiments = new Experiments([], false);
$pk->itemTable = ItemTypeDictionary::getInstance()->getEntries();
$pk->playerMovementSettings = new PlayerMovementSettings(PlayerMovementType::LEGACY, 0, false);
$pk->serverSoftwareVersion = sprintf("%s %s", \pocketmine\NAME, \pocketmine\VERSION);
$this->dataPacket($pk);
$this->sendDataPacket(new AvailableActorIdentifiersPacket());