Small cleanup of recipe UUID handling (furnace recipes don't need UUIDs)

This commit is contained in:
Dylan K. Taylor
2017-09-20 09:34:00 +01:00
parent ca23864e4c
commit fd33a65e3b
6 changed files with 59 additions and 53 deletions

View File

@ -27,7 +27,7 @@ use pocketmine\item\Item;
use pocketmine\Server;
use pocketmine\utils\UUID;
class ShapelessRecipe implements Recipe{
class ShapelessRecipe implements CraftingRecipe{
/** @var Item */
private $output;
@ -129,7 +129,7 @@ class ShapelessRecipe implements Recipe{
return $count;
}
public function registerToCraftingManager(){
Server::getInstance()->getCraftingManager()->registerShapelessRecipe($this);
public function registerToCraftingManager(CraftingManager $manager){
$manager->registerShapelessRecipe($this);
}
}