This commit is contained in:
Shoghi Cervantes 2013-06-09 13:02:38 +02:00
parent ba53a0927f
commit 4f10b1cb7c

View File

@ -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]);
}