Simplified logic on an if statement

This commit is contained in:
Luis C.M committed 2022-05-30 04:53:17 -05:00
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;
}