From 5242592c7b35f3911a540fd8141a69eff3a7c928 Mon Sep 17 00:00:00 2001 From: hamza-cskn Date: Sun, 1 Jan 2023 00:18:39 +0300 Subject: [PATCH] fix: dysfunctional icons are not able to put at 0. slot. --- .../mc/obliviate/inventory/configurable/util/GuiSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurablegui/src/main/java/mc/obliviate/inventory/configurable/util/GuiSerializer.java b/configurablegui/src/main/java/mc/obliviate/inventory/configurable/util/GuiSerializer.java index 97d06eb..7151d5c 100644 --- a/configurablegui/src/main/java/mc/obliviate/inventory/configurable/util/GuiSerializer.java +++ b/configurablegui/src/main/java/mc/obliviate/inventory/configurable/util/GuiSerializer.java @@ -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; }