Skip to content

Commit 0852124

Browse files
committed
fix toolbelt slot group
1 parent 4d8b07f commit 0852124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gregtech/api/items/toolitem/ItemGTToolbelt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public ModularPanel buildUI(HandGuiData guiData, PanelSyncManager guiSyncManager
115115

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

118-
SlotGroup group = new SlotGroup("toolbelt_inventory", 9);
118+
SlotGroup group = new SlotGroup("toolbelt_inventory", Math.min(handler.getSlots(), 9));
119119
guiSyncManager.registerSlotGroup(group);
120120

121121
List<ItemSlot> slots = new ArrayList<>();

0 commit comments

Comments
 (0)