aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-03-09 05:18:45 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-03-09 05:18:45 +0200
commit884c895ba059286072333dec8dbe5a99b07a27ff (patch)
tree477efd0b759947a2c9f6bdf59809584eaf635714 /src/main/java/shcm
parentea77714908943f4b7deed5b1a235e9bf17c80d7a (diff)
downloadCITResewn-884c895ba059286072333dec8dbe5a99b07a27ff.tar.gz
CITResewn-884c895ba059286072333dec8dbe5a99b07a27ff.tar.bz2
CITResewn-884c895ba059286072333dec8dbe5a99b07a27ff.zip
Partially fixed quilt fapi support
Quilt fabric api will now not support layered mod global properties. A better solution will be looked into eventually. Closes #107
Diffstat (limited to 'src/main/java/shcm')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java
index adc935a..f27056a 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java
@@ -49,7 +49,10 @@ public final class PackParser { private PackParser() {}
*/
public static void forEachPack(ResourceManager resourceManager, Consumer<ResourcePack> run) {
resourceManager.streamResourcePacks().forEachOrdered(pack -> {
- List<ResourcePack> grouped = PARSE_FAPI_GROUPS.apply(pack);
+ List<ResourcePack> grouped = null;
+ try {
+ grouped = PARSE_FAPI_GROUPS.apply(pack);
+ } catch (Exception ignored) { }
if (grouped != null)
for (ResourcePack subPack : grouped)
run.accept(subPack);