diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-04-30 14:38:45 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 14:38:45 +1000 |
commit | fbbf7034a7bf3577d2f0ba9d783892e600a46c59 (patch) | |
tree | 5c20e5234eee34400694434a1ea0c7b19d4023b4 | |
parent | 7e5bcda8fde6719562247c1f233985ac07d9f560 (diff) | |
download | NotEnoughUpdates-fbbf7034a7bf3577d2f0ba9d783892e600a46c59.tar.gz NotEnoughUpdates-fbbf7034a7bf3577d2f0ba9d783892e600a46c59.tar.bz2 NotEnoughUpdates-fbbf7034a7bf3577d2f0ba9d783892e600a46c59.zip |
Fix wardrobe and ec pages being wrong (#1122)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java | 18 |
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) { |