R, g, and b are set just above the GL11 stuff.
float r = ConfigOptions.LineColor.R;
float g = ConfigOptions.LineColor.G;
float b = ConfigOptions.LineColor.B;
GL11.glPushMatrix();
GL11.glTranslated(-doubleX, -doubleY, -doubleZ);
And here is the config rgb stuff:
@Name("Line Color")
@Comment("The color of the border line.")
public static ColorCat LineColor = new ColorCat();
public static class ColorCat{
@RangeInt(min = 0, max = 255)
@Comment("RGB red value.")
public int R = 0;
@RangeInt(min = 0, max = 255)
@Comment("RGB green value.")
public int G = 0;
@RangeInt(min = 0, max = 255)
@Comment("RGB blue value.")
public int B = 255;
}
The code is being ran here:
@SubscribeEvent
public static void renderBlocks(DrawBlockHighlightEvent event){
}
Changing to GlStateManager and adding the Texture2D thing helped! However, the line is about 50% transparent.