Remove dead craftingType field from Player

This commit is contained in:
Dylan K. Taylor 2017-11-17 12:57:49 +00:00
parent 78bb951942
commit ffa9a91a95
2 changed files with 0 additions and 4 deletions

View File

@ -222,8 +222,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
public $achievements = [];
public $craftingType = 0; //0 = 2x2 crafting, 1 = 3x3 crafting, 2 = stonecutter
/** @var PlayerCursorInventory */
protected $cursorInventory;
@ -3711,7 +3709,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
if($this->craftingGrid instanceof BigCraftingGrid){
$this->craftingGrid = new CraftingGrid($this);
$this->craftingType = 0;
}
}

View File

@ -51,7 +51,6 @@ class CraftingTable extends Solid{
public function onActivate(Item $item, Player $player = null) : bool{
if($player instanceof Player){
$player->setCraftingGrid(new BigCraftingGrid($player));
$player->craftingType = 1;
}
return true;