Fixed inventory being sent before spawning

This commit is contained in:
Shoghi Cervantes
2014-07-14 16:27:04 +02:00
parent ebe8a902e5
commit 6e77901453
3 changed files with 6 additions and 6 deletions

View File

@ -392,7 +392,7 @@ abstract class BaseInventory implements Inventory{
}
foreach($target as $player){
if(($id = $player->getWindowId($this)) === -1){
if(($id = $player->getWindowId($this)) === -1 or $player->spawned !== true){
$this->close($player);
continue;
}