From 525a145e80475892c2cd34d882f636360971224c Mon Sep 17 00:00:00 2001 From: isXander Date: Tue, 23 Apr 2024 18:27:48 +0100 Subject: Fix publishing --- build.gradle.kts | 4 ++-- gradle.properties | 2 +- src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java | 2 +- stonecutter.gradle.kts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e4de603..e9271ec 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -259,10 +259,10 @@ publishMods { isBeta -> BETA else -> STABLE }) - modLoaders.add("fabric") + modLoaders.add(loader) // modrinth and curseforge use different formats for snapshots. this can be expressed globally - val stableMCVersions = listOf(stonecutter.current.project) + val stableMCVersions = listOf(stonecutter.current.version) val modrinthId: String by project if (modrinthId.isNotBlank() && hasProperty("modrinth.token")) { diff --git a/gradle.properties b/gradle.properties index ef22d36..c2095c2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ org.gradle.jvmargs=-Xmx4G -modrinthId=yacl +modrinthId=1eAoo2KR curseforgeId=667299 githubProject=isXander/YetAnotherConfigLib diff --git a/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java b/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java index b183dc8..e5aca58 100644 --- a/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java +++ b/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java @@ -176,7 +176,7 @@ public class ElementListWidgetExt> exten this.setScrollAmount(this.getScrollAmount() + j); } - int k = this.getBottom() - i - entry.getItemHeight() * 2; + int k = this.getY() + this.getHeight() - i - entry.getItemHeight() * 2; if (k < 0) { this.setScrollAmount(this.getScrollAmount() - k); } diff --git a/stonecutter.gradle.kts b/stonecutter.gradle.kts index 38c2fec..b3ba7eb 100644 --- a/stonecutter.gradle.kts +++ b/stonecutter.gradle.kts @@ -8,7 +8,7 @@ stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chisele ofTask("build") } -stonecutter registerChiseled tasks.register("chiseledPublishMods", stonecutter.chiseled) { +stonecutter registerChiseled tasks.register("chiseledReleaseMod", stonecutter.chiseled) { group = "mod" ofTask("releaseMod") } -- cgit