Fix backwards-incompatible change

This commit is contained in:
Shoghi Cervantes 2014-08-19 16:26:37 +02:00
parent 8446bd2ba5
commit 5dc3fe4fe9

View File

@ -148,6 +148,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
protected $displayName; protected $displayName;
protected $startAction = false; protected $startAction = false;
protected $sleeping = false; protected $sleeping = false;
protected $clientID = null;
public $usedChunks = []; public $usedChunks = [];
protected $loadQueue = []; protected $loadQueue = [];
@ -394,6 +395,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
$this->lastBreak = microtime(true); $this->lastBreak = microtime(true);
$this->ip = $ip; $this->ip = $ip;
$this->port = $port; $this->port = $port;
$this->clientID = $clientID;
$this->spawnPosition = $this->server->getDefaultLevel()->getSafeSpawn(); $this->spawnPosition = $this->server->getDefaultLevel()->getSafeSpawn();
$this->timeout = microtime(true) + 20; $this->timeout = microtime(true) + 20;
$this->gamemode = $this->server->getGamemode(); $this->gamemode = $this->server->getGamemode();