From fbbf7034a7bf3577d2f0ba9d783892e600a46c59 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:38:45 +1000 Subject: Fix wardrobe and ec pages being wrong (#1122) --- .../profileviewer/InventoriesPage.java | 18 ++++++++++-------- 1 file 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) { -- cgit