From 8673a4872e7ac180c5621612fea078f0f884c884 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 29 Jun 2020 21:55:21 +0100 Subject: [PATCH] InventoryEvent: fix wrong return type on getViewers() --- src/event/inventory/InventoryEvent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event/inventory/InventoryEvent.php b/src/event/inventory/InventoryEvent.php index 7c00c35fe..ac19d3705 100644 --- a/src/event/inventory/InventoryEvent.php +++ b/src/event/inventory/InventoryEvent.php @@ -26,9 +26,9 @@ declare(strict_types=1); */ namespace pocketmine\event\inventory; -use pocketmine\entity\Human; use pocketmine\event\Event; use pocketmine\inventory\Inventory; +use pocketmine\player\Player; abstract class InventoryEvent extends Event{ /** @var Inventory */ @@ -43,7 +43,7 @@ abstract class InventoryEvent extends Event{ } /** - * @return Human[] + * @return Player[] */ public function getViewers() : array{ return $this->inventory->getViewers();