Increased max blur intensity & Working screen overrides

- EMI compat now works using forced blur
- Iris shader screen is now sooo much smoother
This commit is contained in:
Martin Prokoph
2024-09-06 23:33:10 +02:00
parent f68048d955
commit 8817e18a55
14 changed files with 41 additions and 112 deletions

View File

@@ -20,9 +20,8 @@ public class MixinMinecraftClient {
opcode = Opcodes.PUTFIELD))
private void blur$onScreenOpen(Screen newScreen, CallbackInfo info) {
if (BlurInfo.lastScreenChange < System.currentTimeMillis() - 100) { // For some reason, in certain scenarios the screen is set to a new one multiple times in a tick. We want to avoid that.
// Here, we reset all tests, to check if the new screen has blur and/or a background
BlurInfo.reset();
BlurInfo.reset(newScreen);
// Manually activate the onScreenChange method when all screens are closed (in-game)
if (newScreen == null) Blur.onScreenChange();