Fixed UnsupportedOperationException

This commit is contained in:
Intelli 2025-10-01 20:07:03 -06:00
parent 6572946b3d
commit 4a8dd716f4

View file

@ -207,7 +207,7 @@ public class BlockUtils {
try {
if (blockState instanceof BlockInventoryHolder) {
if (singleBlock) {
List<Material> chests = java.util.Arrays.asList(Material.CHEST, Material.TRAPPED_CHEST);
List<Material> chests = new java.util.ArrayList<>(java.util.Arrays.asList(Material.CHEST, Material.TRAPPED_CHEST));
chests.addAll(BukkitAdapter.ADAPTER.copperChestMaterials());
Material type = blockState.getType();
if (chests.contains(type)) {