diff --git a/.github/workflows/devbuild.yml b/.github/workflows/devbuild.yml index 2a2858690..75230c65a 100644 --- a/.github/workflows/devbuild.yml +++ b/.github/workflows/devbuild.yml @@ -70,6 +70,11 @@ jobs: title: "Development Build" files: | continuous/* + + - name: Delete drafts + uses: hugo19941994/delete-draft-releases@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get source archives run: | diff --git a/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/config/ConfigurationHandler.kt b/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/config/ConfigurationHandler.kt index d04dfdea0..037845c40 100644 --- a/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/config/ConfigurationHandler.kt +++ b/serverpackcreator-api/src/main/kotlin/de/griefed/serverpackcreator/api/config/ConfigurationHandler.kt @@ -1243,9 +1243,13 @@ class ConfigurationHandler( log.error("Error acquiring icon.", ex) } packConfig.name = packConfig.modpackJson!!.get("launcher").get("name").asText() - packConfig.projectID = packConfig.modpackJson!!.get("curseForgeProject").get("id").asText() - packConfig.versionID = packConfig.modpackJson!!.get("curseForgeFile").get("id").asText() - packConfig.source = ModpackSource.CURSEFORGE + try { + packConfig.projectID = packConfig.modpackJson!!.get("launcher").get("curseForgeProject").get("id").asText() + packConfig.versionID = packConfig.modpackJson!!.get("curseForgeFile").get("id").asText() + packConfig.source = ModpackSource.CURSEFORGE + } catch (ex: Exception) { + log.error("Error acquiring modpack-source details. Please report this to ServerPackCreator in GitHub.", ex) + } } @Throws(NullPointerException::class)