Update Cosmos API to 1.21.8, configure Altitude Nexus repository, and adjust ProgressBookOpener for incomplete quests

This commit is contained in:
akastijn 2025-11-18 00:19:41 +01:00
parent 3bce3f9ab3
commit db8c35150e
3 changed files with 15 additions and 2 deletions

View File

@ -25,7 +25,7 @@ tasks {
}
dependencies {
compileOnly("com.alttd.cosmos:cosmos-api:1.21.6-R0.1-SNAPSHOT") {
compileOnly("com.alttd.cosmos:cosmos-api:1.21.8-R0.1-SNAPSHOT") {
isChanging = true
}
compileOnly("com.alttd.datalock:api:1.1.0-SNAPSHOT")

View File

@ -1,8 +1,18 @@
rootProject.name = "AQuest"
val nexusUser = providers.gradleProperty("alttdSnapshotUsername").orNull ?: System.getenv("NEXUS_USERNAME")
val nexusPass = providers.gradleProperty("alttdSnapshotPassword").orNull ?: System.getenv("NEXUS_PASSWORD")
dependencyResolutionManagement {
repositories {
mavenCentral()
maven {
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
credentials {
username = nexusUser
password = nexusPass
}
}
maven("https://repo.destro.xyz/snapshots") // Altitude - Cosmos
maven("https://jitpack.io") { // Vault
content { includeGroup("com.github.milkbowl") }

View File

@ -41,8 +41,11 @@ public class ProgressBookOpener {
dailyQuest.getTagResolvers()
);
List<String> pages = new ArrayList<>(Config.PROGRESS_PAGES);
if (!dailyQuest.isDone()) {
pages.addAll(dailyQuest.getQuestPages());
}
return (pages.stream()
.map(page -> miniMessage.deserialize(page, tagResolver))
.collect(Collectors.toList()));
}
}
}