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

This commit is contained in:
md_5 2019-06-12 18:06:43 +10:00
parent 411609dc81
commit 4a07dc69d0

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