Added Furnace recipes

This commit is contained in:
Shoghi Cervantes
2014-05-28 00:29:36 +02:00
parent d5f160ea3d
commit 9aed430fda
5 changed files with 49 additions and 68 deletions

View File

@ -30,7 +30,6 @@ use pocketmine\item\Block as ItemBlock;
use pocketmine\level\Level;
use pocketmine\Player;
use pocketmine\recipes\Fuel;
use pocketmine\recipes\Smelt;
class Item{
//All Block IDs are here too
@ -540,23 +539,6 @@ class Item{
return false;
}
final public function getSmeltItem(){
if(!isset(Smelt::$product[$this->id])){
return false;
}
if(isset(Smelt::$product[$this->id][0]) and !is_array(Smelt::$product[$this->id][0])){
return self::get(Smelt::$product[$this->id][0], Smelt::$product[$this->id][1]);
}
if(!isset(Smelt::$product[$this->id][$this->meta])){
return false;
}
return self::get(Smelt::$product[$this->id][$this->meta][0], Smelt::$product[$this->id][$this->meta][1]);
}
/**
* @param Entity|Block $object
*