This commit is contained in:
kirillsaint 2023-07-04 13:51:35 +06:00
parent c578cdec51
commit a61dd5587a
3 changed files with 6 additions and 20 deletions

View File

@ -135,9 +135,7 @@ public abstract class EntityRendererMixin implements EntityRendererExt {
@Shadow protected abstract void loadShader(ResourceLocation resourceLocationIn); @Shadow protected abstract void loadShader(ResourceLocation resourceLocationIn);
@Shadow private Minecraft mc; @Shadow private Minecraft mc;
@Shadow protected abstract void hurtCameraEffect(float partialTicks);
@Shadow private ShaderGroup theShaderGroup; @Shadow private ShaderGroup theShaderGroup;
@Shadow private boolean useShader; @Shadow private boolean useShader;

View File

@ -34,7 +34,7 @@ public class ColorSaturationMod extends Mod {
try { try {
this.cachedFastRender = GameSettings.class.getDeclaredField("ofFastRender"); this.cachedFastRender = GameSettings.class.getDeclaredField("ofFastRender");
} catch (Exception exception) { } catch (Exception exception) {
;
} }
} }
@ -112,13 +112,7 @@ public class ColorSaturationMod extends Mod {
} }
@Override @Override
public void onEnable() { public boolean isForceDisabled() {
super.onEnable(); return isFastRenderEnabled();
if(isFastRenderEnabled()) {
this.toggle();
if(mc.thePlayer != null) {
NotificationUtils.showNotification("error", "Disable Fast Render");
}
}
} }
} }

View File

@ -34,13 +34,7 @@ public class NewMotionBlurMod extends Mod {
} }
@Override @Override
public void onEnable() { public boolean isForceDisabled() {
super.onEnable(); return isFastRenderEnabled();
if(isFastRenderEnabled()) {
this.toggle();
if(mc.thePlayer != null) {
NotificationUtils.showNotification("error", "Disable Fast Render");
}
}
} }
} }