mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 11:31:31 +01:00
Fix
This commit is contained in:
parent
de9212fdab
commit
f7daefc9c2
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user