mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
26 lines
949 B
Diff
26 lines
949 B
Diff
From 05669278713b7b6fd6f326a03cd9433f7cf04500 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Fri, 7 Jun 2019 21:54:48 -0500
|
|
Subject: [PATCH] Fix LecternInventory getHolder throwing ClassCastException
|
|
|
|
---
|
|
src/main/java/org/bukkit/block/Lectern.java | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/main/java/org/bukkit/block/Lectern.java b/src/main/java/org/bukkit/block/Lectern.java
|
|
index 78107207..4d31f091 100644
|
|
--- a/src/main/java/org/bukkit/block/Lectern.java
|
|
+++ b/src/main/java/org/bukkit/block/Lectern.java
|
|
@@ -7,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
|
|
/**
|
|
* Represents a captured state of a lectern.
|
|
*/
|
|
-public interface Lectern extends TileState, BlockInventoryHolder {
|
|
+public interface Lectern extends TileState, Container { // Purpur - fix ClassCastException on LecternInventory#getHolder()
|
|
|
|
/**
|
|
* Get the current lectern page.
|
|
--
|
|
2.20.1
|
|
|