mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Removed $server constructor arguments because of ServerAPI::request()
This commit is contained in:
parent
af52b0a5b5
commit
6d39f54591
17 changed files with 35 additions and 34 deletions
|
|
@ -61,9 +61,9 @@ class Player{
|
|||
private $chunksLoaded = array();
|
||||
private $chunksOrder = array();
|
||||
|
||||
function __construct(PocketMinecraftServer $server, $clientID, $ip, $port, $MTU){
|
||||
function __construct($clientID, $ip, $port, $MTU){
|
||||
$this->MTU = $MTU;
|
||||
$this->server = $server;
|
||||
$this->server = ServerAPI::request();
|
||||
$this->lastBreak = microtime(true);
|
||||
$this->clientID = $clientID;
|
||||
$this->CID = $this->server->clientID($ip, $port);
|
||||
|
|
@ -616,6 +616,7 @@ class Player{
|
|||
case MC_KEEP_ALIVE:
|
||||
|
||||
break;
|
||||
case 0x01:
|
||||
case 0x03:
|
||||
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue