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

bad syntax

parent 3886412f
No related branches found
No related tags found
No related merge requests found
...@@ -42,14 +42,14 @@ public function getId(){ ...@@ -42,14 +42,14 @@ public function getId(){
public function getTexture(){ public function getTexture(){
$texture = array(); $texture = array();
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")){
$texture[1] "data/images/textures/block/".$this->id."_top.png"; $texture[1] = "data/images/textures/block/".$this->id."_top.png";
} }
}elseif(file_exists("data/images/textures/item/".$this->id.".png")){ }elseif(file_exists("data/images/textures/item/".$this->id.".png")){
$texture[0] "data/images/textures/item/".$this->id.".png"; $texture[0] = "data/images/textures/item/".$this->id.".png";
}else{ }else{
$texture[0] "data/images/textures/missing.png"; $texture[0] = "data/images/textures/missing.png";
} }
if(!isset($texture[1])){ if(!isset($texture[1])){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment