Fix utility buttons not being added properly

This commit is contained in:
zontreck 2024-01-10 03:13:59 -07:00
parent ee0c98ee51
commit 898a9b37f0
3 changed files with 32 additions and 4 deletions

View file

@ -49,6 +49,23 @@ public class ChestGUIReadOnlyStackHandler extends ItemStackHandler
{
setStackInSlot(btn.getSlotNum(), btn.buildIcon());
}
if(gui.hasAdd)
{
setStackInSlot(gui.addBtn.getSlotNum(), gui.addBtn.buildIcon());
}
if(gui.hasReset)
{
setStackInSlot(gui.resetBtn.getSlotNum(), gui.resetBtn.buildIcon());
}
if(gui.hasRemove)
{
setStackInSlot(gui.removeBtn.getSlotNum(), gui.removeBtn.buildIcon());
}
} else LibZontreck.LOGGER.error("Gui Buttons list is null");
} else LibZontreck.LOGGER.error("Gui is null!");
}