diff --git a/core/classes/Item.php b/core/classes/Item.php index 72b730e5d7acc412b1b457eef6f40cca0f8bad5a..97a608942d25f035cf1481f7be75484052758e7e 100644 --- a/core/classes/Item.php +++ b/core/classes/Item.php @@ -41,7 +41,6 @@ public function getId(){ } public function getTexture(){ $texture = array(); - echo "data/images/textures/block/".$this->id.".png"; if(file_exists("data/images/textures/block/".$this->id.".png")){ $texture[0] = "data/images/textures/block/".$this->id.".png"; if(file_exists("data/images/textures/block/".$this->id."_top.png")){ diff --git a/core/classes/Shop.php b/core/classes/Shop.php index 0aa7f7e2ce3da725122b3e558824adffb72c1c69..7e98de28a9ae3b6159b0fc56efdc6023d5d89f48 100644 --- a/core/classes/Shop.php +++ b/core/classes/Shop.php @@ -34,7 +34,7 @@ public static function getShops($search=null){ $shops = Connexion::pdo()->query("SELECT * FROM qs_external_cache NATURAL JOIN qs_shops")->fetchAll(PDO::FETCH_ASSOC); for($i=0;$i<count($shops);$i++){ $item = yaml_parse($shops[$i]['itemConfig']); - $shops[$i]['item'] = new Item($item['item']['type']); + $shops[$i]['item'] = new Item(strtolower($item['item']['type'])); } return $shops; }