Skip to content

Commit 7cfc8d7

Browse files
committed
Chore: Add more debug
1 parent f4846d1 commit 7cfc8d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/com/loohp/multichatdiscordsrvaddon/utils/PackProviderUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public static String getResourcePackURL() {
1515
Debug.debug("Selected provider type: " + selectedProviderType);
1616

1717
ProviderType providerType = ProviderType.valueOf(selectedProviderType);
18-
if (providerType == null) throw new IllegalArgumentException("Unknown provider type: " + selectedProviderType + "! Please check your selected-resource-pack-provider config in the resources section.");
18+
Debug.debug("Parsed provider type: " + providerType);
1919

2020
return switch (providerType) {
2121
case ORAXEN -> OraxenHook.getResourcePackURL();
2222
case NEXO -> NexoHook.getResourcePackURL();
2323
case ITEMSADDER -> ItemsAdderHook.getResourcePackURL();
24-
default -> null;
24+
case NONE -> null;
2525
};
2626
}
2727

0 commit comments

Comments
 (0)