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:
Dylan K. Taylor
2017-03-26 14:40:59 +01:00
parent 01440fb659
commit 788bd6fc20
9 changed files with 71 additions and 25 deletions

View File

@ -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
}