Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Blur): disable blur on macOS #5217

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package net.ccbluex.liquidbounce.features.module.modules.render

import net.ccbluex.liquidbounce.config.types.Configurable
import net.ccbluex.liquidbounce.config.types.Value
import net.ccbluex.liquidbounce.event.EventListener
import net.ccbluex.liquidbounce.event.EventManager
import net.ccbluex.liquidbounce.event.events.ScreenEvent
import net.ccbluex.liquidbounce.event.events.SpaceSeperatedNamesChangeEvent
Expand All @@ -40,6 +39,7 @@ import net.ccbluex.liquidbounce.utils.client.chat
import net.ccbluex.liquidbounce.utils.client.inGame
import net.ccbluex.liquidbounce.utils.client.markAsError
import net.ccbluex.liquidbounce.utils.entity.RenderedEntities
import net.minecraft.client.MinecraftClient
import net.minecraft.client.gui.screen.DisconnectedScreen

/**
Expand Down Expand Up @@ -67,7 +67,10 @@ object ModuleHud : ClientModule("HUD", Category.RENDER, state = true, hide = tru
}

val isBlurable
get() = blur && !(mc.options.hudHidden && mc.currentScreen == null)
get() = blur && !(mc.options.hudHidden && mc.currentScreen == null) &&
// Only blur on Windows and Linux - Mac seems to have issues with it
// TODO: fix blur on macOS
!MinecraftClient.IS_SYSTEM_MAC

init {
tree(Configurable("In-built", components as MutableList<Value<*>>))
Expand Down
Loading