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