Skip to content

Commit

Permalink
Address fisher review
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Jan 23, 2025
1 parent 5ab3620 commit 7475050
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,17 @@ public boolean usesMui2() {
public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager) {
int rowSize = (int) Math.sqrt(inventorySize);
guiSyncManager.registerSlotGroup("item_in", 1);
guiSyncManager.registerSlotGroup("item_out", rowSize);

List<List<IWidget>> widgets = new ArrayList<>();
for (int i = 0; i < rowSize; i++) {
widgets.add(new ArrayList<>());
for (int j = 0; j < rowSize; j++) {
int index = i * rowSize + j;
widgets.get(i).add(new ItemSlot().slot(SyncHandlers.itemSlot(exportItems, index)
.accessibility(false, true)));
widgets.get(i).add(new ItemSlot()
.slot(SyncHandlers.itemSlot(exportItems, index)
.slotGroup("item_out")
.accessibility(false, true)));
}
}

Expand Down

0 comments on commit 7475050

Please sign in to comment.