diff options
author | DoKM <mcazzyman@gmail.com> | 2021-07-14 17:14:36 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-07-14 17:14:36 +0200 |
commit | f29c2ff69569af9d80ec7b78b9fb484f3a566c11 (patch) | |
tree | e2ddf5ff6996eb3ac21a76ed26aa758b984cfe7f | |
parent | af9f52a5bbb040c07d271f39a23b651316260111 (diff) | |
download | NotEnoughUpdates-f29c2ff69569af9d80ec7b78b9fb484f3a566c11.tar.gz NotEnoughUpdates-f29c2ff69569af9d80ec7b78b9fb484f3a566c11.tar.bz2 NotEnoughUpdates-f29c2ff69569af9d80ec7b78b9fb484f3a566c11.zip |
fix /pv second page wardrobe view not having boots
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 2 |
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);
}
}
}
|