Skip to content

Commit

Permalink
Remove call to Stream#parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
MaidThatPrograms committed Feb 14, 2021
1 parent d3a3428 commit 3f8e49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cmsc389e/circuitry/client/EventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static void onGuiOpenEvent(final GuiOpenEvent event) throws IllegalAccess
final ModList list = ModList.get();

final Set<String> allowed = ImmutableSet.of(Circuitry.MODID, ForgeVersion.MOD_ID, "minecraft", "worldedit");
final String mods = list.applyForEachModContainer(ModContainer::getModInfo).parallel()
final String mods = list.applyForEachModContainer(ModContainer::getModInfo)
.filter(info -> !allowed.contains(info.getModId())).map(IModInfo::getDisplayName)
.collect(Collectors.joining(", "));
if (!mods.isEmpty())
Expand Down

0 comments on commit 3f8e49c

Please sign in to comment.