mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Fixed #358
This commit is contained in:
parent
ba53a0927f
commit
4f10b1cb7c
@ -1052,6 +1052,9 @@ class Player{
|
|||||||
$this->data->set("caseusername", $this->username);
|
$this->data->set("caseusername", $this->username);
|
||||||
$this->inventory = array();
|
$this->inventory = array();
|
||||||
foreach($this->data->get("inventory") as $slot => $item){
|
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]);
|
$this->inventory[$slot] = BlockAPI::getItem($item[0], $item[1], $item[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user