Skip to content

Commit 2896c49

Browse files
committed
fix deployment dependency formatting
1 parent c66df53 commit 2896c49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ if (cfApiKey.isPresent() || deploymentDebug.toBoolean()) {
737737
if (dep.size() == 0) {
738738
return
739739
}
740-
String parts = dep.split(':')
740+
String[] parts = dep.split(':')
741741
String type = parts[0], slug = parts[1]
742742
if(!(type in ['requiredDependency', 'embeddedLibrary', 'optionalDependency', 'tool', 'incompatible'])) {
743743
throw new Exception('Invalid Curseforge dependency type: ' + type)
@@ -781,7 +781,7 @@ if (modrinthApiKey.isPresent() || deploymentDebug.toBoolean()) {
781781
return
782782
}
783783
String[] parts = dep.split(':')
784-
String qual = parts[0].split('-')
784+
String[] qual = parts[0].split('-')
785785
addModrinthDep(qual[0], qual[1], parts[1])
786786
}
787787
}

0 commit comments

Comments
 (0)