made pushing disableable in config, php8.1+particial 8.2 comp(not recommended)

This commit is contained in:
GameHerobrine 2023-02-24 06:10:41 +03:00
parent 79831c457d
commit cb6e649081
19 changed files with 55 additions and 40 deletions

View file

@ -3,15 +3,15 @@
class RakNetCodec{
public $packet;
public $buffer;
public function __construct(RakNetPacket $packet){
$this->packet = $packet;
$this->buffer =& $this->packet->buffer;
$this->buffer = &$this->packet->buffer;
$this->encode();
}
private function encode(){
if(strlen($this->packet->buffer) > 0){
if($this->packet->buffer != null && strlen($this->packet->buffer) > 0){
return;
}
$this->buffer .= chr($this->packet->pid());