Removed $server constructor arguments because of ServerAPI::request()

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-29 19:49:33 +01:00
parent af52b0a5b5
commit 6d39f54591
17 changed files with 35 additions and 34 deletions

View file

@ -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;