From 8023c6f3e5bdb9882124156967d5e3dc002ce30e Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 12 Jun 2019 18:06:43 +1000 Subject: [PATCH] SPIGOT-5058: ClassCastException when getting InventoryHolder of lectern when it's destroyed By: md_5 --- paper-server/nms-patches/TileEntityLectern.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/TileEntityLectern.patch b/paper-server/nms-patches/TileEntityLectern.patch index 598285846c..ab0cc68726 100644 --- a/paper-server/nms-patches/TileEntityLectern.patch +++ b/paper-server/nms-patches/TileEntityLectern.patch @@ -58,7 +58,7 @@ + + @Override + public InventoryHolder getOwner() { -+ return (Lectern) CraftBlock.at(world, position).getState(); ++ return (Lectern) TileEntityLectern.this.getOwner(); + } + // CraftBukkit end