mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +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:
@ -29,6 +29,10 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class ClientToServerHandshakePacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::CLIENT_TO_SERVER_HANDSHAKE_PACKET;
|
||||
|
||||
public function canBeSentBeforeLogin() : bool{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
//No payload
|
||||
}
|
||||
|
Reference in New Issue
Block a user