mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39: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
|
|
@ -35,6 +35,13 @@ class PacketPool{
|
|||
return $pk;
|
||||
}
|
||||
|
||||
public static function isPacketExist($pid, $protocol) : bool{
|
||||
if(isset(self::$packetPool[$protocol][$pid])) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function init() : void{
|
||||
if(self::$isInit){
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue