mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Avoid Crash if server sending the packet which didnt exist in older version
serverfullpacket: Who m I
This commit is contained in:
parent
179baa471a
commit
93df0e3f0d
4 changed files with 12 additions and 237 deletions
|
|
@ -351,7 +351,11 @@ class Player{
|
|||
return;
|
||||
}
|
||||
|
||||
$packet->PROTOCOL = $this->PROTOCOL;
|
||||
if(PacketPool::isPacketExist($packet->pid(), $this->PROTOCOL) != true){
|
||||
return;
|
||||
}
|
||||
|
||||
$packet->PROTOCOL = $this->PROTOCOL;
|
||||
|
||||
$packet->encode();
|
||||
if($packet->pid() == 163 or $packet->pid() == 164 && $this->PROTOCOL < ProtocolInfo7::CURRENT_PROTOCOL_7){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue