SPIGOT-5058: ClassCastException when getting InventoryHolder of lectern when it's destroyed

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-06-12 18:06:43 +10:00
parent 7278b8c206
commit 8023c6f3e5

View file

@ -58,7 +58,7 @@
+ +
+ @Override + @Override
+ public InventoryHolder getOwner() { + public InventoryHolder getOwner() {
+ return (Lectern) CraftBlock.at(world, position).getState(); + return (Lectern) TileEntityLectern.this.getOwner();
+ } + }
+ // CraftBukkit end + // CraftBukkit end