From 2b1d5ba9b51d8a6afbf9c9f7b2cd3f244a5cd65d Mon Sep 17 00:00:00 2001 From: DoKM Date: Wed, 21 Jul 2021 13:16:21 +0200 Subject: Add working backpack viewer to /pv also change the max size of enderchest to represent the in game view more --- .../profileviewer/GuiProfileViewer.java | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'src/main') 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 8f1b47d1..fd70dadc 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java @@ -1665,6 +1665,8 @@ public class GuiProfileViewer extends GuiScreen { return 4; case "backpack_contents": return 5; + case "ender_chest_contents": + return 5; } return 6; } @@ -1759,22 +1761,27 @@ public class GuiProfileViewer extends GuiScreen { ItemStack[][][] inventories = new ItemStack[numInventories][][]; //int availableSlots = getAvailableSlotsForInventory(inventoryInfo, collectionInfo, invName); + int startNumberJ = 0; for(int i=0; i