mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-17 12:15:10 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user