Fix utility buttons not being added properly
This commit is contained in:
parent
ee0c98ee51
commit
898a9b37f0
3 changed files with 32 additions and 4 deletions
|
@ -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!");
|
||||
}
|
||||
|
|
Reference in a new issue