mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
php8.2 fixes
This commit is contained in:
parent
d7d346a237
commit
6d89c50e43
13 changed files with 33 additions and 26 deletions
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
class RakNetCodec{
|
||||
|
||||
public $packet;
|
||||
|
||||
public $buffer;
|
||||
public function __construct(RakNetPacket $packet){
|
||||
$this->packet = $packet;
|
||||
$this->buffer = &$this->packet->buffer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue