Skip to content

Commit

Permalink
Fix ender chests not being silent
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Oct 5, 2023
1 parent 3cf1aae commit bfcf023
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit bfcf023

Please # to comment.