From 2e153624adec62e8bfb6784ac1488c5c2039671e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 3 Sep 2021 12:44:41 +0100 Subject: [PATCH] Anvil: actually add slot constants, this time --- src/block/inventory/AnvilInventory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/block/inventory/AnvilInventory.php b/src/block/inventory/AnvilInventory.php index 18a455863..2e875d3ff 100644 --- a/src/block/inventory/AnvilInventory.php +++ b/src/block/inventory/AnvilInventory.php @@ -30,6 +30,9 @@ use pocketmine\world\Position; class AnvilInventory extends SimpleInventory implements BlockInventory{ use BlockInventoryTrait; + public const SLOT_INPUT = 0; + public const SLOT_MATERIAL = 1; + public function __construct(Position $holder){ $this->holder = $holder; parent::__construct(2);