Skip to content

Commit

Permalink
fix toolbelt slot group
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Feb 1, 2025
1 parent 4d8b07f commit 0852124
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public ModularPanel buildUI(HandGuiData guiData, PanelSyncManager guiSyncManager

int heightBonus = (handler.getSlots() / 9) * 18;

SlotGroup group = new SlotGroup("toolbelt_inventory", 9);
SlotGroup group = new SlotGroup("toolbelt_inventory", Math.min(handler.getSlots(), 9));
guiSyncManager.registerSlotGroup(group);

List<ItemSlot> slots = new ArrayList<>();
Expand Down

0 comments on commit 0852124

Please sign in to comment.