From 04f7dd97802666b097e816649cbe503698f29d43 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Sun, 6 Dec 2020 13:37:39 -0500 Subject: Fix Unsupported Operation crash --- src/main/java/me/Danker/DankersSkyblockMod.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index e43a405..b1755d0 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -2786,7 +2786,7 @@ public class DankersSkyblockMod if(event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) { IBlockState blockState = Minecraft.getMinecraft().theWorld.getBlockState(event.pos); Block block = blockState.getBlock(); - List interactables = Arrays.asList( + ArrayList interactables = new ArrayList<>(Arrays.asList( Blocks.acacia_door, Blocks.acacia_fence_gate, Blocks.anvil, @@ -2825,7 +2825,7 @@ public class DankersSkyblockMod Blocks.stone_button, Blocks.oak_door, Blocks.skull - ); + )); if(Utils.inDungeons) { interactables.add(Blocks.coal_block); interactables.add(Blocks.redstone_block); -- cgit