Fixed invalid array when a player has been kicked

This commit is contained in:
Shoghi Cervantes 2014-02-02 02:27:59 +01:00
parent 5f3829692d
commit d299e39649

View File

@ -219,6 +219,9 @@ class Player{
"z" => $Z,
"data" => $this->level->getOrderedChunk($X, $Z, $Yndex),
));
if($cnt === false){
return false;
}
$this->chunkCount = array();
foreach($cnt as $i => $count){
$this->chunkCount[$count] = true;