mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-5058: ClassCastException when getting InventoryHolder of lectern when it's destroyed
By: md_5 <git@md-5.net>
This commit is contained in:
parent
7278b8c206
commit
8023c6f3e5
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@
|
|||
+
|
||||
+ @Override
|
||||
+ public InventoryHolder getOwner() {
|
||||
+ return (Lectern) CraftBlock.at(world, position).getState();
|
||||
+ return (Lectern) TileEntityLectern.this.getOwner();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
|
|
Loading…
Reference in a new issue