From 29cc9283f80bad009b3cf653dd242bfb9c166695 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 8 Nov 2019 11:29:00 +0000 Subject: [PATCH] reverse unnecessary formatting changes --- src/pocketmine/Player.php | 2 +- src/pocketmine/inventory/CraftingGrid.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index e22a42291..9ee384ba6 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2721,7 +2721,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ if(!$this->spawned or !$this->isAlive()){ return true; } - if($packet->action === InteractPacket::ACTION_MOUSEOVER and $packet->target === 0){ //TODO HACK: silence useless spam (MCPE 1.8) //this packet is EXPECTED to only be sent when interacting with an entity, but due to some messy Mojang @@ -3825,6 +3824,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ $this->addWindow($this->cursorInventory, ContainerIds::UI, true); $this->craftingGrid = new CraftingGrid($this, CraftingGrid::SIZE_SMALL); + //TODO: more windows } diff --git a/src/pocketmine/inventory/CraftingGrid.php b/src/pocketmine/inventory/CraftingGrid.php index 739e17ed9..7d8b02c9a 100644 --- a/src/pocketmine/inventory/CraftingGrid.php +++ b/src/pocketmine/inventory/CraftingGrid.php @@ -40,7 +40,6 @@ class CraftingGrid extends BaseInventory{ public $offset; /** @var Player */ protected $holder; - /** @var int */ private $gridWidth;