int maxSlots = ((IArrowContainer2)quiver.getItem()).getSlotCount(quiver)*10;
drawTexturedModalRect(xOffset -(1 + maxSlots), yOffset, 0, 0, 1+maxSlots, SLOT_H);
drawTexturedModalRect(xOffset , yOffset, 182-(1+maxSlots), 0, 1+maxSlots, SLOT_H);
int selectedSlot =  ((IArrowContainer2)quiver.getItem()).getSelectedSlot(quiver);
drawTexturedModalRect(xOffset -(2 + maxSlots) + 20*selectedSlot, yOffset-1, 0, 22, 24, SLOT_H);
<BUG>GL11.glEnable(GL12.GL_RESCALE_NORMAL);
RenderHelper.enableGUIStandardItemLighting();</BUG>
for (int i = 0; i < maxSlots/10; ++i) {
int x = xOffset -(1+maxSlots) + i * 20 + 3;
renderStackAt(x, yOffset+3, ((IArrowContainer2)quiver.getItem()).getStackInSlot(quiver, i), frame);

int maxSlots = ((IArrowContainer2)quiver.getItem()).getSlotCount(quiver)*10;
drawTexturedModalRect(xOffset -(1 + maxSlots), yOffset, 0, 0, 1+maxSlots, SLOT_H);
drawTexturedModalRect(xOffset , yOffset, 182-(1+maxSlots), 0, 1+maxSlots, SLOT_H);
int selectedSlot =  ((IArrowContainer2)quiver.getItem()).getSelectedSlot(quiver);
drawTexturedModalRect(xOffset -(2 + maxSlots) + 20*selectedSlot, yOffset-1, 0, 22, 24, SLOT_H);
GlStateManager.enableRescaleNormal();
RenderHelper.enableGUIStandardItemLighting();
for (int i = 0; i < maxSlots/10; ++i) {
int x = xOffset -(1+maxSlots) + i * 20 + 3;
renderStackAt(x, yOffset+3, ((IArrowContainer2)quiver.getItem()).getStackInSlot(quiver, i), frame);
