mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed inventory being sent before spawning
This commit is contained in:
@ -333,7 +333,7 @@ class PlayerInventory extends BaseInventory{
|
||||
$pk->hotbar[] = $index <= -1 ? -1 : $index + 9;
|
||||
}
|
||||
}
|
||||
if(($id = $player->getWindowId($this)) === -1){
|
||||
if(($id = $player->getWindowId($this)) === -1 or $player->spawned !== true){
|
||||
$this->close($player);
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user