feat: various improvements

- Update to MidnightLib 1.7.0 and use its features to make the config screen more reliable
- Fix background gradient being opaque briefly when fading out while not in a world
- Fix 1.21.5 compat (still compatible with 1.21.4 as well :D)
This commit is contained in:
Martin Prokoph
2025-03-28 23:35:46 +01:00
parent 5f9738da38
commit 695fa67270
10 changed files with 48 additions and 40 deletions

View File

@@ -24,6 +24,6 @@ public class MixinHandledScreen extends Screen {
}
@Inject(at = @At("HEAD"), method = "render")
public void blur$processScreenChange(DrawContext context, int mouseX, int mouseY, float delta, CallbackInfo ci) {
if (PlatformFunctions.getPlatformName().equals("neoforge")) Blur.onRender(context, width, height, this.client);
if (PlatformFunctions.getPlatformName().equals("neoforge")) Blur.onRender(context, width, height, this.client, delta);
}
}