Fixed UnsupportedOperationException
This commit is contained in:
parent
6572946b3d
commit
4a8dd716f4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue