mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Improved network packets allocation
This commit is contained in:
@ -23,16 +23,24 @@ namespace pocketmine\network\protocol;
|
||||
|
||||
|
||||
class ExplodePacket extends DataPacket{
|
||||
public static $pool = [];
|
||||
public static $next = 0;
|
||||
|
||||
public $x;
|
||||
public $y;
|
||||
public $z;
|
||||
public $radius;
|
||||
public $records;
|
||||
public $records = [];
|
||||
|
||||
public function pid(){
|
||||
return Info::EXPLODE_PACKET;
|
||||
}
|
||||
|
||||
public function clean(){
|
||||
$this->records = [];
|
||||
return parent::clean();
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user