File tree 1 file changed +2
-2
lines changed
common/src/main/java/com/loohp/multichatdiscordsrvaddon/utils
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ public static String getResourcePackURL() {
15
15
Debug .debug ("Selected provider type: " + selectedProviderType );
16
16
17
17
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 );
19
19
20
20
return switch (providerType ) {
21
21
case ORAXEN -> OraxenHook .getResourcePackURL ();
22
22
case NEXO -> NexoHook .getResourcePackURL ();
23
23
case ITEMSADDER -> ItemsAdderHook .getResourcePackURL ();
24
- default -> null ;
24
+ case NONE -> null ;
25
25
};
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments