We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9a54f9 commit 6ee97e7Copy full SHA for 6ee97e7
src/main/java/com/tterrag/blur/mixin/MixinInGameHud.java
@@ -19,7 +19,7 @@ public class MixinInGameHud {
19
@Final @Shadow private MinecraftClient client;
20
@Inject(at = @At("TAIL"), method = "render")
21
public void blur$onRender(DrawContext context, float tickDelta, CallbackInfo ci) {
22
- if (client.currentScreen == null && client.world != null && Blur.start > 0 && BlurConfig.blurExclusions.stream().noneMatch(exclusion -> Blur.prevScreen.startsWith(exclusion)) && Blur.screenHasBackground) {
+ if (client.currentScreen == null && client.world != null && Blur.start > 0 && (Blur.prevScreen == null || BlurConfig.blurExclusions.stream().noneMatch(exclusion -> Blur.prevScreen.startsWith(exclusion))) && Blur.screenHasBackground) {
23
context.fillGradient(0, 0, this.scaledWidth, this.scaledHeight, Blur.getBackgroundColor(false, false), Blur.getBackgroundColor(true, false));
24
}
25
0 commit comments