mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-30 19:52:06 -07:00
SPIGOT-5058: ClassCastException when getting InventoryHolder of lectern when it's destroyed
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