Skip to content

Commit

Permalink
Fixed error due to a misconfigured server
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Feb 28, 2023
1 parent 062d516 commit 8053ab6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/sollace/fabwork/impl/FabworkConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.io.*;
import java.nio.file.*;
import java.util.List;
import java.util.Objects;
import java.util.function.Supplier;
import java.util.stream.Stream;

Expand Down Expand Up @@ -61,6 +62,9 @@ public Stream<ModEntryImpl> getCustomRequiredMods() {
return Stream.empty();
}

return requiredModIds.stream().map(id -> new ModEntryImpl(id, RequirementType.CLIENT));
return requiredModIds.stream()
.filter(Objects::nonNull)
.distinct()
.map(id -> new ModEntryImpl(id, RequirementType.CLIENT));
}
}

0 comments on commit 8053ab6

Please sign in to comment.