mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added CraftItemEvent, Crafting system now uses Transactions
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
namespace pocketmine\inventory;
|
||||
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\Server;
|
||||
|
||||
class ShapedRecipe implements Recipe{
|
||||
/** @var Item */
|
||||
@ -98,4 +99,8 @@ class ShapedRecipe implements Recipe{
|
||||
public function getShape(){
|
||||
return $this->rows;
|
||||
}
|
||||
|
||||
public function registerToCraftingManager(){
|
||||
Server::getInstance()->getCraftingManager()->registerShapedRecipe($this);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user