aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-04-24 02:01:43 +1000
committerGitHub <noreply@github.com>2024-04-23 18:01:43 +0200
commit6f1b131cd2ea580800ecf34c057022b785eb753a (patch)
treef716c10a751dc083a11ec73f2be368e7cecc30cd /src
parent0308131920eab60a9151f2bf471c524d46ce0a02 (diff)
downloadNotEnoughUpdates-6f1b131cd2ea580800ecf34c057022b785eb753a.tar.gz
NotEnoughUpdates-6f1b131cd2ea580800ecf34c057022b785eb753a.tar.bz2
NotEnoughUpdates-6f1b131cd2ea580800ecf34c057022b785eb753a.zip
Fix 4 and 5 row backpacks having wrong order in pv (#1110)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java9
1 files changed, 9 insertions, 0 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 d1528051..22bcfe75 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/InventoriesPage.java
@@ -825,7 +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;
}
+
if (yIndex >= thisRows) {
break;
}