diff options
-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);
}
}
}
|