Skip to content

Commit

Permalink
Fix switch case indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollounknowndev committed Nov 27, 2024
1 parent 15b54bb commit f10e816
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,18 @@ public static void addLoadOrdering(CustomValue.CvObject object, List<String> all
if (array == null) return;

switch (array.getType()) {
case STRING -> modIds.add(array.getAsString());
case ARRAY -> {
for (CustomValue id : array.getAsArray()) {
if (id.getType() == CustomValue.CvType.STRING) {
modIds.add(id.getAsString());
}
case STRING -> modIds.add(array.getAsString());
case ARRAY -> {
for (CustomValue id : array.getAsArray()) {
if (id.getType() == CustomValue.CvType.STRING) {
modIds.add(id.getAsString());
}
}
default -> {
LOGGER.error("[Fabric] {} should be a string or an array", order.jsonKey);
return;
}
}
default -> {
LOGGER.error("[Fabric] {} should be a string or an array", order.jsonKey);
return;
}
}

modIds.stream().filter(allIds::contains).forEach(modId -> sorter.addLoadOrdering(modId, currentId, order));
Expand Down

0 comments on commit f10e816

Please sign in to comment.