aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-07-14 17:14:36 +0200
committerDoKM <mcazzyman@gmail.com>2021-07-14 17:14:36 +0200
commitf29c2ff69569af9d80ec7b78b9fb484f3a566c11 (patch)
treee2ddf5ff6996eb3ac21a76ed26aa758b984cfe7f /src/main/java
parentaf9f52a5bbb040c07d271f39a23b651316260111 (diff)
downloadNotEnoughUpdates-f29c2ff69569af9d80ec7b78b9fb484f3a566c11.tar.gz
NotEnoughUpdates-f29c2ff69569af9d80ec7b78b9fb484f3a566c11.tar.bz2
NotEnoughUpdates-f29c2ff69569af9d80ec7b78b9fb484f3a566c11.zip
fix /pv second page wardrobe view not having boots
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 661bd5a9..e0cf37fb 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -1724,7 +1724,7 @@ public class GuiProfileViewer extends GuiScreen {
for(int i=9*4; i<jsonInv.size(); i++) {
JsonElement item = jsonInv.get(i);
if(item != null && item.isJsonObject()) {
- jsonInvSize = (i/9)*9;
+ jsonInvSize = (int) (Math.ceil((i+1)/9f)*9);
}
}
}