diff --git a/src/main/java/org/polyfrost/colorsaturation/mixin/OptifineConfigMixin.java b/src/main/java/org/polyfrost/colorsaturation/mixin/OptifineConfigMixin.java index fe3c5e0..0da0411 100644 --- a/src/main/java/org/polyfrost/colorsaturation/mixin/OptifineConfigMixin.java +++ b/src/main/java/org/polyfrost/colorsaturation/mixin/OptifineConfigMixin.java @@ -15,7 +15,7 @@ public class OptifineConfigMixin { @Dynamic("OptiFine") @Inject(method = "isFastRender", at = @At("HEAD"), cancellable = true) private static void cancelFastRender(CallbackInfoReturnable cir) { - if (ColorSaturation.config.enabled && SaturationConfig.forceDisableFastRender) { + if (ColorSaturation.config != null && ColorSaturation.config.enabled && SaturationConfig.forceDisableFastRender) { cir.setReturnValue(false); } }