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

added _side verif

parent e0d99a01
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,12 @@ public function getRepresentation(){ ...@@ -47,6 +47,12 @@ public function getRepresentation(){
if(file_exists("data/images/textures/block/".$this->id."_top.png")){ if(file_exists("data/images/textures/block/".$this->id."_top.png")){
$return["texture"][1] = "data/images/textures/block/".$this->id."_top.png"; $return["texture"][1] = "data/images/textures/block/".$this->id."_top.png";
} }
}elseif(file_exists("data/images/textures/block/".$this->id."_side.png")){
$return["type"] = "block";
$return["texture"][0] = "data/images/textures/block/".$this->id."_side.png";
if(file_exists("data/images/textures/block/".$this->id."_top.png")){
$return["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")){
$return["type"] = "item"; $return["type"] = "item";
$return["texture"][0] = "data/images/textures/item/".$this->id.".png"; $return["texture"][0] = "data/images/textures/item/".$this->id.".png";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment