File tree 2 files changed +5
-14
lines changed
common/src/main/java/com/loohp/multichatdiscordsrvaddon
2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,8 @@ public static ServerResourcePackDownloadResult downloadServerResourcePack(File p
176
176
177
177
if (!Config .i ().getResources ().serverResourcePackProvider ().equalsIgnoreCase ("none" )) {
178
178
String fetchedPackURL = PackProviderUtils .getResourcePackURL ();
179
- Debug .debug ("Fetched resourcepack URL: " + fetchedPackURL );
180
179
if (fetchedPackURL != null ) {
181
- fetchedPackURL = null ;
180
+ url = fetchedPackURL ;
182
181
hash = null ;
183
182
}
184
183
}
Original file line number Diff line number Diff line change 5
5
import com .loohp .multichatdiscordsrvaddon .hooks .ItemsAdderHook ;
6
6
import com .loohp .multichatdiscordsrvaddon .hooks .NexoHook ;
7
7
import com .loohp .multichatdiscordsrvaddon .hooks .OraxenHook ;
8
+ import dev .lone .itemsadder .api .ItemsAdder ;
8
9
9
10
import java .util .Locale ;
10
11
@@ -18,18 +19,9 @@ public static String getResourcePackURL() {
18
19
Debug .debug ("Parsed provider type: " + providerType );
19
20
20
21
return switch (providerType ) {
21
- case ORAXEN -> {
22
- Debug .debug ("Oraxen provider type." );
23
- yield OraxenHook .getResourcePackURL ();
24
- }
25
- case NEXO -> {
26
- Debug .debug ("Nexo provider type" );
27
- yield NexoHook .getResourcePackURL ();
28
- }
29
- case ITEMSADDER -> {
30
- Debug .debug ("ItemsAdder provider type." );
31
- yield ItemsAdderHook .getResourcePackURL ();
32
- }
22
+ case ORAXEN -> OraxenHook .getResourcePackURL ();
23
+ case NEXO -> NexoHook .getResourcePackURL ();
24
+ case ITEMSADDER -> ItemsAdderHook .getResourcePackURL ();
33
25
case NONE -> null ;
34
26
};
35
27
You can’t perform that action at this time.
0 commit comments