From 4a07dc69d0b3c191bd65e5b91cc64dc3804a8ad3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 12 Jun 2019 18:06:43 +1000 Subject: [PATCH] SPIGOT-5058: ClassCastException when getting InventoryHolder of lectern when it's destroyed --- nms-patches/TileEntityLectern.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/TileEntityLectern.patch b/nms-patches/TileEntityLectern.patch index 598285846c..ab0cc68726 100644 --- a/nms-patches/TileEntityLectern.patch +++ b/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