{
//If this row has only one paintjob, don't try and render the second one
if(2 * y + x >= numPaintjobs)
continue;
Paintjob paintjob = gunType.paintjobs.get(2 * y + x);
ItemStack stack = gunStack.copy();
stack.stackTagCompound.setString("Paint", paintjob.iconName);
itemRender.renderItemIntoGUI(this.fontRendererObj, mc.getTextureManager(), stack, xOrigin + 132 + x * 18, yOrigin + 83 + y * 18);
}
}