diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index ff3ee37a7..876fea6af 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -96,6 +96,7 @@ use pocketmine\nbt\tag\ByteTag; use pocketmine\nbt\tag\CompoundTag; use pocketmine\nbt\tag\DoubleTag; use pocketmine\nbt\tag\ListTag; +use pocketmine\network\mcpe\NetworkCipher; use pocketmine\network\mcpe\NetworkSession; use pocketmine\network\mcpe\protocol\AdventureSettingsPacket; use pocketmine\network\mcpe\protocol\AnimatePacket; @@ -1795,7 +1796,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ } if(!$packet->skipVerification){ - $this->server->getAsyncPool()->submitTask(new ProcessLoginTask($this, $packet)); + $this->server->getAsyncPool()->submitTask(new ProcessLoginTask($this, $packet, NetworkCipher::$ENABLED)); }else{ $this->setAuthenticationStatus(true, null); $this->networkSession->onLoginSuccess();