drawTexturedModalRect(x + 31, y, 151, 0, 31, SLOT_H);
if (mc.thePlayer!=null){
if(((IBattlePlayer) mc.thePlayer).isBattlemode())
this.drawTexturedModalRect(x + (mc.thePlayer.inventory.currentItem - InventoryPlayerBattle.OFFSET) * 20-1,
y - 1, 0, 22, 24, SLOT_H);
<BUG>GL11.glEnable(GL12.GL_RESCALE_NORMAL);
RenderHelper.enableGUIStandardItemLighting();</BUG>
for (int i = 0; i < InventoryPlayerBattle.WEAPON_SETS; ++i) {
int varx = x + i * 20 + 3;
this.renderInventorySlot(i + InventoryPlayerBattle.OFFSET+(isMainHand?0:InventoryPlayerBattle.WEAPON_SETS),

drawTexturedModalRect(x + 31, y, 151, 0, 31, SLOT_H);
if (mc.thePlayer!=null){
if(((IBattlePlayer) mc.thePlayer).isBattlemode())
this.drawTexturedModalRect(x + (mc.thePlayer.inventory.currentItem - InventoryPlayerBattle.OFFSET) * 20-1,
y - 1, 0, 22, 24, SLOT_H);
GlStateManager.enableRescaleNormal();
RenderHelper.enableGUIStandardItemLighting();
for (int i = 0; i < InventoryPlayerBattle.WEAPON_SETS; ++i) {
int varx = x + i * 20 + 3;
this.renderInventorySlot(i + InventoryPlayerBattle.OFFSET+(isMainHand?0:InventoryPlayerBattle.WEAPON_SETS),
