Merge pull request #20 from Silent-Client/TEST2

Update BlurUtil.java
This commit is contained in:
kirillsaint 2023-08-06 20:11:56 +06:00 committed by GitHub
commit 8256b7eb66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,14 +46,14 @@ public class BlurUtil {
}
public static void blur(float x, float y, float x2, float y2, ScaledResolution sr){
Minecraft mc = Minecraft.getMinecraft();
try {
if(SilentClientTweaker.hasOptifine && GameSettings.class.getDeclaredField("ofFastRender").getBoolean("ofFastRender")) {
if(SilentClientTweaker.hasOptifine && GameSettings.class.getDeclaredField("ofFastRender").getBoolean(mc.gameSettings)) {
return;
}
} catch (Exception err) {
Client.logger.catching(err);
}
Minecraft mc = Minecraft.getMinecraft();
int factor = sr.getScaleFactor();
int factor2 = sr.getScaledWidth();