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

@ -28,7 +28,7 @@ use pocketmine\item\ItemFactory;
use pocketmine\Server;
use pocketmine\utils\UUID;
class ShapedRecipe implements Recipe{
class ShapedRecipe implements CraftingRecipe{
/** @var Item */
private $output;
@ -168,7 +168,7 @@ class ShapedRecipe implements Recipe{
return $this->shape;
}
public function registerToCraftingManager(){
Server::getInstance()->getCraftingManager()->registerShapedRecipe($this);
public function registerToCraftingManager(CraftingManager $manager){
$manager->registerShapedRecipe($this);
}
}