diff --git a/src/Player.php b/src/Player.php index 5ab84588d5..dfca8c5ac8 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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]); }