aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle.kts4
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java2
-rw-r--r--stonecutter.gradle.kts2
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<E extends ElementListWidgetExt.Entry<E>> 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")
}