mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added Furnace recipes
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user