From bfcf0233fa4a5b4b932d2a2a1b4e98980d86ab1d Mon Sep 17 00:00:00 2001 From: Jikoo Date: Wed, 4 Oct 2023 22:15:35 -0400 Subject: [PATCH] Fix ender chests not being silent --- .../java/com/lishid/openinv/internal/IAnySilentContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/com/lishid/openinv/internal/IAnySilentContainer.java b/api/src/main/java/com/lishid/openinv/internal/IAnySilentContainer.java index 82b629f0..5758b2ae 100644 --- a/api/src/main/java/com/lishid/openinv/internal/IAnySilentContainer.java +++ b/api/src/main/java/com/lishid/openinv/internal/IAnySilentContainer.java @@ -158,7 +158,8 @@ default boolean isAnySilentContainer(@NotNull Block block) { * @return true if the type is a supported container */ default boolean isAnySilentContainer(@NotNull BlockState blockState) { - return blockState instanceof InventoryHolder holder && isAnySilentContainer(holder); + return blockState instanceof InventoryHolder holder && isAnySilentContainer(holder) + || blockState instanceof EnderChest; } /**