mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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 $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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user