Skip to content

Commit

Permalink
💎
Browse files Browse the repository at this point in the history
  • Loading branch information
RawDiamondMC committed Sep 21, 2024
1 parent 8e4560e commit 6a6864e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static KessokuMetadata parse(final MapNode json, final String modid) {
switch (pair.getKey()) {
case "entrypoint" -> parseEntrypoint(entrypoints, pair.getValue(), modid);
case "languageAdapters" -> parseLanguageAdapters(languageAdapters, pair.getValue(), modid);
case null, default -> throw new IllegalArgumentException();
default -> throw new IllegalArgumentException();
}
}
return new KessokuMetadata(entrypoints, languageAdapters,modid);
Expand All @@ -58,6 +58,7 @@ private static void parseEntrypoint(final Map<String, List<EntrypointMetadata>>
((MapNode) node).forEach(pair -> {
// normalize value
final JsonNode<?> rawValue = pair.getValue();
// TODO
final List<EntrypointMetadata> entrypointMetadataList = switch (rawValue.getType()) {
case Map -> parseObjectEntrypoint((MapNode) rawValue);
case String -> List.of(new EntrypointMetadata() {
Expand Down

0 comments on commit 6a6864e

Please sign in to comment.