Crosshair improvements

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

View File

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