diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-08-18 13:31:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 12:31:23 +0100 |
commit | f6ca23fcc1d13389ab9460c843a0f2126eb84443 (patch) | |
tree | 776a27cc56f2d603bc76b8e08392ebf4d38427b8 /versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin | |
parent | 97f788ecd4be15b1556ee1f3d8bd057bdf06bf5f (diff) | |
download | OneConfig-f6ca23fcc1d13389ab9460c843a0f2126eb84443.tar.gz OneConfig-f6ca23fcc1d13389ab9460c843a0f2126eb84443.tar.bz2 OneConfig-f6ca23fcc1d13389ab9460c843a0f2126eb84443.zip |
Blur (#94)
* blurring
* api
* update optifine hook
Diffstat (limited to 'versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin')
-rw-r--r-- | versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/hooks/OptifineConfigHook.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/hooks/OptifineConfigHook.java b/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/hooks/OptifineConfigHook.java index 197d9c2..124c44e 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/hooks/OptifineConfigHook.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/internal/plugin/hooks/OptifineConfigHook.java @@ -26,20 +26,20 @@ package cc.polyfrost.oneconfig.internal.plugin.hooks; -import cc.polyfrost.oneconfig.gui.OneConfigGui; import cc.polyfrost.oneconfig.platform.Platform; import cc.polyfrost.oneconfig.utils.gui.GuiUtils; +import cc.polyfrost.oneconfig.utils.gui.OneUIScreen; import java.util.Optional; public class OptifineConfigHook { public static boolean shouldNotApplyFastRender() { - if (Platform.getGuiPlatform().getCurrentScreen() instanceof OneConfigGui) { + if (Platform.getGuiPlatform().getCurrentScreen() instanceof OneUIScreen && ((OneUIScreen) Platform.getGuiPlatform().getCurrentScreen()).hasBackgroundBlur()) { return true; } for (Optional screen : GuiUtils.getScreenQueue()) { - if (screen.isPresent() && screen.get() instanceof OneConfigGui) { + if (screen.isPresent() && screen.get() instanceof OneUIScreen && ((OneUIScreen) screen.get()).hasBackgroundBlur()) { return true; } } |