php8.2 fixes

This commit is contained in:
GameHerobrine 2023-07-03 07:10:04 +03:00
parent d7d346a237
commit 6d89c50e43
13 changed files with 33 additions and 26 deletions

View file

@ -5,7 +5,7 @@ class MinecraftInterface{
public $bandwidth;
private $socket;
private $packets;
public $start, $stop;
function __construct($server, $port = 25565, $serverip = "0.0.0.0"){
$this->socket = new UDPSocket($server, $port, true, $serverip);
if($this->socket->connected === false){

View file

@ -3,7 +3,7 @@
class UDPSocket{
public $connected, $sock, $server;
public $port;
function __construct($server, $port, $listen = false, $serverip = "0.0.0.0"){
$this->server = $server;
$this->port = $port;

View file

@ -3,7 +3,7 @@
class RakNetCodec{
public $packet;
public $buffer;
public function __construct(RakNetPacket $packet){
$this->packet = $packet;
$this->buffer = &$this->packet->buffer;