From 525a145e80475892c2cd34d882f636360971224c Mon Sep 17 00:00:00 2001 From: isXander Date: Tue, 23 Apr 2024 18:27:48 +0100 Subject: Fix publishing --- src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/dev/isxander/yacl3/gui') 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); } -- cgit