aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java
index 22bcfe75..05c28aaf 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java
@@ -825,14 +825,16 @@ public class InventoriesPage extends GuiProfileViewerPage {
if (invName.equals("inv_contents")) {
yIndex--;
if (yIndex < 0) yIndex = rows - 1;
- } else if (maxInvSize == 36) {
- yIndex++;
- if (yIndex < 0) yIndex = rows - 1;
- if (yIndex > 3) yIndex = 0;
- } else if (maxInvSize == 45) {
- yIndex += 2;
- if (yIndex < 0) yIndex = rows - 1;
- if (yIndex > 4) yIndex = 0;
+ } else if (invName.equals("backpack_contents")) {
+ if (maxInvSize == 36) {
+ yIndex++;
+ if (yIndex < 0) yIndex = rows - 1;
+ if (yIndex > 3) yIndex = 0;
+ } else if (maxInvSize == 45) {
+ yIndex += 2;
+ if (yIndex < 0) yIndex = rows - 1;
+ if (yIndex > 4) yIndex = 0;
+ }
}
if (yIndex >= thisRows) {