mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Added Normal and Big crafting recipes, fixed CraftingTransactionGroup count
This commit is contained in:
@ -24,6 +24,7 @@ namespace pocketmine\block;
|
||||
use pocketmine\item\Item;
|
||||
use pocketmine\Player;
|
||||
|
||||
//TODO: check orientation
|
||||
class Stonecutter extends Solid{
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(self::STONECUTTER, $meta, "Stonecutter");
|
||||
@ -31,7 +32,9 @@ class Stonecutter extends Solid{
|
||||
}
|
||||
|
||||
public function onActivate(Item $item, Player $player = null){
|
||||
$player->toCraft[-1] = 2;
|
||||
if($player instanceof Player){
|
||||
$player->craftingType = 2;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user