mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed error
This commit is contained in:
parent
2ef1f0c9d0
commit
c42fd790ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1067,7 +1067,7 @@ class Player{
|
|||
$this->data->set("caseusername", $this->username);
|
||||
$this->inventory = array();
|
||||
foreach($this->data->get("inventory") as $slot => $item){
|
||||
if(!is_array($item)){
|
||||
if(!is_array($item) or count($item) < 3){
|
||||
$item = array(AIR, 0, 0);
|
||||
}
|
||||
$this->inventory[$slot] = BlockAPI::getItem($item[0], $item[1], $item[2]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue