From c42fd790ff3b68b4ede98d23dc50bdb73c7737cb Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 10 Jun 2013 15:36:45 +0200 Subject: [PATCH] Fixed error --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 20bb74976..b1f20072a 100644 --- a/src/Player.php +++ b/src/Player.php @@ -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]);