mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 04:59:57 +00:00
Simplified logic on an if statement
This commit is contained in:
1 parent
2370c5e1f4
commit
e7ceaa6d2a
1 file changed
+2
-2
@@ -378,10 +378,10 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
gradualTextSpeed++;
|
||||
}
|
||||
|
||||
if (i == mc.gameSettings.keyBindBack.getKeyCode() || i == 201 && (scrollY < rowStart * ClientProxy.Font.height())) {//Page up
|
||||
if (i == mc.gameSettings.keyBindBack.getKeyCode() || i == 201 && scrollY < rowStart * ClientProxy.Font.height()) {//Page up
|
||||
scrollY += ClientProxy.Font.height() * 2;
|
||||
}
|
||||
if (i == mc.gameSettings.keyBindBack.getKeyCode() || i == 209 && (scrollY > 0)) {//Page down
|
||||
if (i == mc.gameSettings.keyBindBack.getKeyCode() || i == 209 && scrollY > 0) {//Page down
|
||||
scrollY -= ClientProxy.Font.height() * 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user