GuiQuestLog:

-Changed scrolling so you can't scroll up past the first side button.
This commit is contained in:
Luis C.M committed 2023-08-22 18:01:33 -05:00
1 parent b639685b5f
commit e092e7bcdc
1 file changed
+1 -1
@@ -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<Integer,GuiMenuSideButton> entry : this.sideButtons.entrySet()){