diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-06 13:37:39 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-06 13:37:39 -0500 |
commit | 04f7dd97802666b097e816649cbe503698f29d43 (patch) | |
tree | 6a39f1a2c7618f8e9784f25d450d0e72f91e4cdf /src/main/java/me | |
parent | f9d0c70107eb6b384b4c16ae11368e181774cc1d (diff) | |
download | SkyblockMod-04f7dd97802666b097e816649cbe503698f29d43.tar.gz SkyblockMod-04f7dd97802666b097e816649cbe503698f29d43.tar.bz2 SkyblockMod-04f7dd97802666b097e816649cbe503698f29d43.zip |
Fix Unsupported Operation crash
Diffstat (limited to 'src/main/java/me')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 4 |
1 files changed, 2 insertions, 2 deletions
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<Block> interactables = Arrays.asList( + ArrayList<Block> 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); |