Skip to content

Commit 51a009f

Browse files
committed
Fix more pain
1 parent 9305908 commit 51a009f

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,22 @@ public static String getResourcePackURL() {
1717
ProviderType providerType = ProviderType.valueOf(selectedProviderType);
1818
Debug.debug("Parsed provider type: " + providerType);
1919

20-
switch (providerType) {
21-
case ORAXEN:
20+
return switch (providerType) {
21+
case ORAXEN -> {
2222
Debug.debug("Oraxen provider type.");
23-
return OraxenHook.getResourcePackURL();
24-
25-
case NEXO:
23+
yield OraxenHook.getResourcePackURL();
24+
}
25+
case NEXO -> {
2626
Debug.debug("Nexo provider type");
27-
return NexoHook.getResourcePackURL();
28-
29-
case ITEMSADDER:
27+
yield NexoHook.getResourcePackURL();
28+
}
29+
case ITEMSADDER -> {
3030
Debug.debug("ItemsAdder provider type.");
31-
return ItemsAdderHook.getResourcePackURL();
32-
case NONE:
33-
return null;
34-
}
31+
yield ItemsAdderHook.getResourcePackURL();
32+
}
33+
case NONE -> null;
34+
};
3535

36-
return null;
3736
}
3837

3938
}

integrations/CarbonChat/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<artifactId>carbonchat</artifactId>
2525
<version>3.0.0-beta.28</version>
2626
<scope>system</scope>
27-
<systemPath>${project.build.directory}/../../../lib/CarbonChat.jar</systemPath>
27+
<systemPath>${project.build.sourceDirectory}/../../../../../lib/CarbonChat.jar</systemPath>
2828
</dependency>
2929
<dependency>
3030
<groupId>com.google.inject</groupId>

integrations/ChatControl-Red/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<artifactId>chatcontrolred</artifactId>
2525
<version>10.28.4</version>
2626
<scope>system</scope>
27-
<systemPath>${project.build.directory}/../../../lib/ChatControl-Red.jar</systemPath>
27+
<systemPath>${project.build.sourceDirectory}/../../../../../lib/ChatControl-Red.jar</systemPath>
2828
</dependency>
2929
</dependencies>
3030

integrations/ChatControl/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<artifactId>chatcontrol</artifactId>
2525
<version>11.1.7</version>
2626
<scope>system</scope>
27-
<systemPath>${project.build.directory}/../../../lib/ChatControl.jar</systemPath>
27+
<systemPath>${project.build.sourceDirectory}/../../../../../lib/ChatControl.jar</systemPath>
2828
</dependency>
2929
</dependencies>
3030

0 commit comments

Comments
 (0)