From dd99c5bb44502c1a42c9e2f3fa56db0095e3744c Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 14 May 2019 21:31:49 +1000 Subject: [PATCH] SPIGOT-4929: Beacon inventory getType() returns CHEST --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index 7e0a20d1d7..4e80c07a12 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -469,7 +469,7 @@ public class CraftInventory implements Inventory { return InventoryType.ENDER_CHEST; } else if (inventory instanceof InventoryMerchant) { return InventoryType.MERCHANT; - } else if (inventory instanceof TileEntityBeacon) { + } else if (this instanceof CraftInventoryBeacon) { return InventoryType.BEACON; } else if (this instanceof CraftInventoryAnvil) { return InventoryType.ANVIL;