From e092e7bcdc913bf73fddf21eecc78ce743d7f6fc Mon Sep 17 00:00:00 2001 From: "Luis C.M" <42545778+c0508383@users.noreply.github.com> Date: Tue, 22 Aug 2023 18:01:33 -0500 Subject: [PATCH] GuiQuestLog: -Changed scrolling so you can't scroll up past the first side button. --- src/main/java/noppes/npcs/client/gui/player/GuiQuestLog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/client/gui/player/GuiQuestLog.java b/src/main/java/noppes/npcs/client/gui/player/GuiQuestLog.java index c8bf57888..827c9a037 100644 --- a/src/main/java/noppes/npcs/client/gui/player/GuiQuestLog.java +++ b/src/main/java/noppes/npcs/client/gui/player/GuiQuestLog.java @@ -140,7 +140,7 @@ public class GuiQuestLog extends GuiNPCInterface implements ITopButtonListener,I return; } - this.destSideButtonScroll += Math.signum(this.mouseWheel) * 22; + this.destSideButtonScroll = Math.max(0, this.destSideButtonScroll + Math.signum(this.mouseWheel) * 22); this.sideButtonScroll = this.sideButtonScroll * (1.0F - 0.2F) + (this.destSideButtonScroll * 0.2F); for(Map.Entry entry : this.sideButtons.entrySet()){