mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:51:32 +01:00
Fix
This commit is contained in:
parent
5b3e721fc9
commit
d2a96575b8
@ -25,6 +25,7 @@ import net.silentclient.client.mods.render.NewMotionBlurMod;
|
||||
import net.silentclient.client.mods.settings.RenderMod;
|
||||
import net.silentclient.client.utils.CloudRenderer;
|
||||
import net.silentclient.client.utils.HUDCaching;
|
||||
import net.silentclient.client.utils.OptifinePatch;
|
||||
import net.silentclient.client.utils.culling.EntityCulling;
|
||||
import net.silentclient.client.utils.shader.MotionBlurUtils;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@ -205,6 +206,9 @@ public abstract class EntityRendererMixin implements EntityRendererExt {
|
||||
|
||||
if(Client.getInstance().getModInstances().getModByClass(NewMotionBlurMod.class).isEnabled() && !Client.getInstance().getModInstances().getModByClass(NewMotionBlurMod.class).isForceDisabled()) {
|
||||
if (motionBlur != null){
|
||||
if(OptifinePatch.needPatch()) {
|
||||
OptifinePatch.patch();
|
||||
}
|
||||
shaders.add(motionBlur);
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,6 @@ package net.silentclient.client.mods.render;
|
||||
import net.minecraft.client.settings.GameSettings;
|
||||
import net.silentclient.client.mods.Mod;
|
||||
import net.silentclient.client.mods.ModCategory;
|
||||
import net.silentclient.client.utils.OptifinePatch;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
@ -36,12 +35,4 @@ public class NewMotionBlurMod extends Mod {
|
||||
public boolean isForceDisabled() {
|
||||
return isFastRenderEnabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
super.onEnable();
|
||||
if(!isFastRenderEnabled() && OptifinePatch.needPatch()) {
|
||||
OptifinePatch.patch();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user