aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2024-04-23 18:27:48 +0100
committerisXander <xander@isxander.dev>2024-04-23 18:27:48 +0100
commit525a145e80475892c2cd34d882f636360971224c (patch)
tree5dbd7e4e5be68ea99872605e1fa77c60e8dad4f5 /src/main/java/dev/isxander
parente1d95961881b72f40d8c12d2cdcaeee4d9e6b31b (diff)
downloadYetAnotherConfigLib-525a145e80475892c2cd34d882f636360971224c.tar.gz
YetAnotherConfigLib-525a145e80475892c2cd34d882f636360971224c.tar.bz2
YetAnotherConfigLib-525a145e80475892c2cd34d882f636360971224c.zip
Fix publishing
Diffstat (limited to 'src/main/java/dev/isxander')
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java2
1 files changed, 1 insertions, 1 deletions
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);
}