Skip to content

Commit 4a8dd71

Browse files
committed
Fixed UnsupportedOperationException
1 parent 6572946 commit 4a8dd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/coreprotect/utility/BlockUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public static Inventory getContainerInventory(BlockState blockState, boolean sin
207207
try {
208208
if (blockState instanceof BlockInventoryHolder) {
209209
if (singleBlock) {
210-
List<Material> chests = java.util.Arrays.asList(Material.CHEST, Material.TRAPPED_CHEST);
210+
List<Material> chests = new java.util.ArrayList<>(java.util.Arrays.asList(Material.CHEST, Material.TRAPPED_CHEST));
211211
chests.addAll(BukkitAdapter.ADAPTER.copperChestMaterials());
212212
Material type = blockState.getType();
213213
if (chests.contains(type)) {

0 commit comments

Comments
 (0)