From c8199e14ad1b49b321d8acfadd964b5ddbc8ed08 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 16 Sep 2017 23:09:14 +0100 Subject: [PATCH] Removed redundant duplicate method call --- .../network/mcpe/protocol/types/NetworkInventoryAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction.php b/src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction.php index 7af1fd45bd..0ec90bd3ab 100644 --- a/src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction.php +++ b/src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction.php @@ -154,7 +154,7 @@ class NetworkInventoryAction{ $window = $player->getWindow($this->windowId); if($window !== null){ - return new SlotChangeAction($player->getWindow($this->windowId), $this->inventorySlot, $this->oldItem, $this->newItem); + return new SlotChangeAction($window, $this->inventorySlot, $this->oldItem, $this->newItem); } throw new \InvalidStateException("Player " . $player->getName() . " has no open container with window ID $this->windowId");