mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-15 19:25:09 +01:00
Fix excluded GUIs being ignored
This commit is contained in:
@@ -61,7 +61,7 @@ public class Blur implements ClientModInitializer {
|
|||||||
colorFirst = Integer.parseUnsignedInt(configs.gradientStartColor, 16);
|
colorFirst = Integer.parseUnsignedInt(configs.gradientStartColor, 16);
|
||||||
colorSecond = Integer.parseUnsignedInt(configs.gradientEndColor, 16);
|
colorSecond = Integer.parseUnsignedInt(configs.gradientEndColor, 16);
|
||||||
ShaderEffectRenderCallback.EVENT.register((deltaTick) -> {
|
ShaderEffectRenderCallback.EVENT.register((deltaTick) -> {
|
||||||
if (MinecraftClient.getInstance().currentScreen != null) {
|
if (start > 0) {
|
||||||
blurProgress.set(getProgress());
|
blurProgress.set(getProgress());
|
||||||
blur.render(deltaTick);
|
blur.render(deltaTick);
|
||||||
}
|
}
|
||||||
@@ -73,6 +73,8 @@ public class Blur implements ClientModInitializer {
|
|||||||
boolean excluded = newGui == null || ArrayUtils.contains(configs.blurExclusions, newGui.getClass().getName());
|
boolean excluded = newGui == null || ArrayUtils.contains(configs.blurExclusions, newGui.getClass().getName());
|
||||||
if (!excluded) {
|
if (!excluded) {
|
||||||
start = System.currentTimeMillis();
|
start = System.currentTimeMillis();
|
||||||
|
} else {
|
||||||
|
start = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user