mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
GuiQuestLog:
-Changed scrolling so you can't scroll up past the first side button.
This commit is contained in:
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()){
|
||||
|
||||
Reference in new issue
Block a user