mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Small cleanup of recipe UUID handling (furnace recipes don't need UUIDs)
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user