This commit is contained in:
kirillsaint 2023-08-06 20:01:53 +06:00
parent de9212fdab
commit f7daefc9c2

View File

@ -3,10 +3,13 @@ package net.silentclient.client.gui.util;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.settings.GameSettings;
import net.minecraft.client.shader.Framebuffer; import net.minecraft.client.shader.Framebuffer;
import net.minecraft.client.shader.ShaderGroup; import net.minecraft.client.shader.ShaderGroup;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.Timer; import net.minecraft.util.Timer;
import net.silentclient.client.Client;
import net.silentclient.client.mixin.SilentClientTweaker;
import net.silentclient.client.mixin.ducks.MinecraftExt; import net.silentclient.client.mixin.ducks.MinecraftExt;
import net.silentclient.client.mods.util.IMixinShaderGroup; import net.silentclient.client.mods.util.IMixinShaderGroup;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;
@ -43,6 +46,13 @@ public class BlurUtil {
} }
public static void blur(float x, float y, float x2, float y2, ScaledResolution sr){ public static void blur(float x, float y, float x2, float y2, ScaledResolution sr){
try {
if(SilentClientTweaker.hasOptifine && GameSettings.class.getDeclaredField("ofFastRender").getBoolean("ofFastRender")) {
return;
}
} catch (Exception err) {
Client.logger.catching(err);
}
Minecraft mc = Minecraft.getMinecraft(); Minecraft mc = Minecraft.getMinecraft();
int factor = sr.getScaleFactor(); int factor = sr.getScaleFactor();