mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Remove dead craftingType field from Player
This commit is contained in:
parent
78bb951942
commit
ffa9a91a95
@ -222,8 +222,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
public $achievements = [];
|
public $achievements = [];
|
||||||
|
|
||||||
public $craftingType = 0; //0 = 2x2 crafting, 1 = 3x3 crafting, 2 = stonecutter
|
|
||||||
|
|
||||||
/** @var PlayerCursorInventory */
|
/** @var PlayerCursorInventory */
|
||||||
protected $cursorInventory;
|
protected $cursorInventory;
|
||||||
|
|
||||||
@ -3711,7 +3709,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
if($this->craftingGrid instanceof BigCraftingGrid){
|
if($this->craftingGrid instanceof BigCraftingGrid){
|
||||||
$this->craftingGrid = new CraftingGrid($this);
|
$this->craftingGrid = new CraftingGrid($this);
|
||||||
$this->craftingType = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@ class CraftingTable extends Solid{
|
|||||||
public function onActivate(Item $item, Player $player = null) : bool{
|
public function onActivate(Item $item, Player $player = null) : bool{
|
||||||
if($player instanceof Player){
|
if($player instanceof Player){
|
||||||
$player->setCraftingGrid(new BigCraftingGrid($player));
|
$player->setCraftingGrid(new BigCraftingGrid($player));
|
||||||
$player->craftingType = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user