mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed #358
This commit is contained in:
parent
ba53a0927f
commit
4f10b1cb7c
1 changed files with 3 additions and 0 deletions
|
|
@ -1052,6 +1052,9 @@ class Player{
|
|||
$this->data->set("caseusername", $this->username);
|
||||
$this->inventory = array();
|
||||
foreach($this->data->get("inventory") as $slot => $item){
|
||||
if(!is_array($item)){
|
||||
$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