diff options
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 6 |
1 files changed, 5 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 e0cf37fb..1822f630 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java @@ -1721,10 +1721,14 @@ public class GuiProfileViewer extends GuiScreen { jsonInvSize = (int)Math.ceil(jsonInv.size()/9f)*9;
} else {
jsonInvSize = 9*4;
+ float divideBy = 9f;
+ if(invName.equals("wardrobe_contents")){
+ divideBy = 36f;
+ }
for(int i=9*4; i<jsonInv.size(); i++) {
JsonElement item = jsonInv.get(i);
if(item != null && item.isJsonObject()) {
- jsonInvSize = (int) (Math.ceil((i+1)/9f)*9);
+ jsonInvSize = (int) (Math.ceil((i+1)/divideBy)*(int)divideBy);
}
}
}
|