File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/meteordevelopment/meteorclient/mixin Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 13
13
import meteordevelopment .meteorclient .systems .modules .render .Freecam ;
14
14
import meteordevelopment .meteorclient .systems .modules .render .NoRender ;
15
15
import meteordevelopment .meteorclient .utils .Utils ;
16
+ import net .minecraft .client .MinecraftClient ;
16
17
import net .minecraft .client .gui .DrawContext ;
17
18
import net .minecraft .client .gui .hud .InGameHud ;
18
19
import net .minecraft .client .render .RenderTickCounter ;
@@ -95,6 +96,7 @@ private boolean alwaysRenderCrosshairInFreecam(boolean firstPerson) {
95
96
@ Inject (method = "renderCrosshair" , at = @ At ("HEAD" ), cancellable = true )
96
97
private void onRenderCrosshair (DrawContext context , RenderTickCounter tickCounter , CallbackInfo ci ) {
97
98
if (Modules .get ().get (NoRender .class ).noCrosshair ()) ci .cancel ();
99
+ if (MinecraftClient .getInstance ().currentScreen != null ) ci .cancel ();
98
100
}
99
101
100
102
@ Inject (method = "renderTitleAndSubtitle" , at = @ At ("HEAD" ), cancellable = true )
You can’t perform that action at this time.
0 commit comments