SPIGOT-5058: ClassCastException when getting InventoryHolder of lectern when it's destroyed
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
+
|
||||
+ @Override
|
||||
+ public InventoryHolder getOwner() {
|
||||
+ return (Lectern) CraftBlock.at(world, position).getState();
|
||||
+ return (Lectern) TileEntityLectern.this.getOwner();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user