From cacd7ce457ae07bf5dc52f159bdbf7317569d9ad Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 7 May 2019 23:52:16 +0200 Subject: [PATCH] SPIGOT-4891: LecternInventory.getType() should return InventoryType.LECTERN By: Brokkonaut --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index 9fbedcede87..7e0a20d1d7d 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -16,7 +16,6 @@ import net.minecraft.server.TileEntityBrewingStand; import net.minecraft.server.TileEntityDispenser; import net.minecraft.server.TileEntityDropper; import net.minecraft.server.TileEntityFurnace; -import net.minecraft.server.TileEntityLectern; import net.minecraft.server.TileEntityShulkerBox; import net.minecraft.server.TileEntitySmoker; import org.apache.commons.lang.Validate; @@ -480,7 +479,7 @@ public class CraftInventory implements Inventory { return InventoryType.SHULKER_BOX; } else if (inventory instanceof TileEntityBarrel) { return InventoryType.BARREL; - } else if (inventory instanceof TileEntityLectern) { + } else if (this instanceof CraftInventoryLectern) { return InventoryType.LECTERN; } else if (this instanceof CraftInventoryLoom) { return InventoryType.LOOM;