Skip to content
Snippets Groups Projects
Commit b6c67b13 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

potential fix

parent b7e93fa7
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,6 @@ public function getId(){ ...@@ -41,7 +41,6 @@ public function getId(){
} }
public function getTexture(){ public function getTexture(){
$texture = array(); $texture = array();
echo "data/images/textures/block/".$this->id.".png";
if(file_exists("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"; $texture[0] = "data/images/textures/block/".$this->id.".png";
if(file_exists("data/images/textures/block/".$this->id."_top.png")){ if(file_exists("data/images/textures/block/".$this->id."_top.png")){
......
...@@ -34,7 +34,7 @@ public static function getShops($search=null){ ...@@ -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); $shops = Connexion::pdo()->query("SELECT * FROM qs_external_cache NATURAL JOIN qs_shops")->fetchAll(PDO::FETCH_ASSOC);
for($i=0;$i<count($shops);$i++){ for($i=0;$i<count($shops);$i++){
$item = yaml_parse($shops[$i]['itemConfig']); $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; return $shops;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment