File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/main/java/io/github/axolotlclient Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1111import io .github .axolotlclient .modules .hypixel .HypixelMods ;
1212import io .github .axolotlclient .modules .hypixel .nickhider .NickHider ;
1313import io .github .axolotlclient .modules .motionblur .MotionBlur ;
14+ import io .github .axolotlclient .modules .rpc .DiscordRPC ;
1415import io .github .axolotlclient .modules .scrollableTooltips .ScrollableTooltips ;
1516import io .github .axolotlclient .modules .zoom .Zoom ;
16- import io .github .axolotlclient .modules .rpc .DiscordRPC ;
1717import io .github .axolotlclient .util .Util ;
1818import net .fabricmc .api .ClientModInitializer ;
19- import net .fabricmc .api .ModInitializer ;
2019import net .fabricmc .loader .api .FabricLoader ;
2120import net .minecraft .client .MinecraftClient ;
2221import net .minecraft .client .gui .DrawableHelper ;
@@ -127,6 +126,9 @@ public static void addBadge(Entity entity){
127126 if (entity instanceof PlayerEntity ){
128127
129128 if (AxolotlClient .CONFIG .showBadges .get () && AxolotlClient .isUsingClient (entity .getUuid ())) {
129+ GlStateManager .alphaFunc (516 , 0.1F );
130+ GlStateManager .enableDepthTest ();
131+ GlStateManager .enableAlphaTest ();
130132 MinecraftClient .getInstance ().getTextureManager ().bindTexture (AxolotlClient .badgeIcon );
131133
132134 int x = -(MinecraftClient .getInstance ().textRenderer .getStringWidth (
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public PlayerEntityMixin(World world) {
2323 public void getReach (Entity entity , CallbackInfo ci ){
2424 if ((Object )this == MinecraftClient .getInstance ().player || entity .equals (MinecraftClient .getInstance ().player )){
2525 ReachDisplayHud hud = (ReachDisplayHud ) HudManager .getINSTANCE ().get (ReachDisplayHud .ID );
26- if (hud .isEnabled ()){
26+ if (hud != null && hud .isEnabled ()){
2727 hud .updateDistance (Util .calculateDistance (super .getPos (), entity .getPos ()));
2828 }
2929 }
You can’t perform that action at this time.
0 commit comments