mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Fixed resource packs/login sequence fail, added basic safety restrictions for packet sending before clients are logged in
close #452
This commit is contained in:
@ -32,6 +32,10 @@ class ServerToClientHandshakePacket extends DataPacket{
|
||||
public $publicKey;
|
||||
public $serverToken;
|
||||
|
||||
public function canBeSentBeforeLogin() : bool{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
$this->publicKey = $this->getString();
|
||||
$this->serverToken = $this->getString();
|
||||
|
Reference in New Issue
Block a user