This commit is contained in:
kirillsaint 2023-08-31 15:03:11 +06:00
parent 5b3e721fc9
commit d2a96575b8
2 changed files with 4 additions and 9 deletions

View File

@ -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);
}

View File

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