Crosshair improvements

This commit is contained in:
ThisIsALegitUsername 2023-02-02 16:36:26 +00:00
parent a143a161ab
commit e3392d808c

View File

@ -327,8 +327,9 @@ public class GuiIngame extends Gui {
if (ModManager.crosshair.isEnabled()){
GlStateManager.disableAlpha();
if(Minecraft.getMinecraft().pointedEntity != null)
GlStateManager.color(RenderUtils.getColorWithoutRGB(Crosshair.color).getRed(), RenderUtils.getColorWithoutRGB(Crosshair.color).getGreen(), RenderUtils.getColorWithoutRGB(Crosshair.color).getBlue());
if(Minecraft.getMinecraft().pointedEntity != null){
GlStateManager.color(RenderUtils.getColorWithoutRGB(Crosshair.color).getRed(), RenderUtils.getColorWithoutRGB(Crosshair.color).getGreen(), RenderUtils.getColorWithoutRGB(Crosshair.color).getBlue());
}
}
this.drawTexturedModalRect(scaledResWidth / 2 - 7, scaledResHeight / 2 - 7, 0, 0, 16, 16);