Skip to content

Commit

Permalink
fix: dysfunctional icons are not able to put at 0. slot.
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-cskn committed Dec 31, 2022
1 parent f08f305 commit 5242592
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void putDysfunctionalIcons(@Nonnull ConfigurableGui gui, @Nonnull
if (!section.isSet(table.getMaterialSectionName())) continue;

final int slotNo = section.getInt(table.getSlotSectionName(), -1);
if (slotNo > 0) {
if (slotNo >= 0) {
gui.addItem(slotNo, new DysfunctionalConfigIcon(gui.getGuiCache().getConfigItem(section, placeholderUtil, table), section));
continue;
}
Expand Down

0 comments on commit 5242592

Please sign in to comment.