Fixed ScrollGUI#canScroll

This commit is contained in:
NichtStudioCode 2022-01-14 21:35:55 +01:00
parent 1cc9f4bf4b
commit 3c7a85b2a9

@ -56,7 +56,7 @@ public abstract class ScrollGUI extends BaseGUI {
}
public boolean canScroll(int lines) {
if (lines == 0 || (infiniteLines && lines > 0)) return true;
if (lines == 0 || (infiniteLines && lines > 0) || (lines < 0 && getCurrentLine() > 0)) return true;
int line = getCurrentLine() + lines;
int maxLineIndex = getMaxLineIndex();