Update BlurUtil.java

This commit is contained in:
kirillsaint 2023-08-06 20:11:42 +06:00
parent f7daefc9c2
commit 136ef1e222

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();