From 884c895ba059286072333dec8dbe5a99b07a27ff Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Wed, 9 Mar 2022 05:18:45 +0200 Subject: 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 --- src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 run) { resourceManager.streamResourcePacks().forEachOrdered(pack -> { - List grouped = PARSE_FAPI_GROUPS.apply(pack); + List grouped = null; + try { + grouped = PARSE_FAPI_GROUPS.apply(pack); + } catch (Exception ignored) { } if (grouped != null) for (ResourcePack subPack : grouped) run.accept(subPack); -- cgit