Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jun 21, 2024
1 parent bca9907 commit 671a9a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class OptifineConfigMixin {
@Dynamic("OptiFine")
@Inject(method = "isFastRender", at = @At("HEAD"), cancellable = true)
private static void cancelFastRender(CallbackInfoReturnable<Boolean> cir) {
if (ColorSaturation.config.enabled && SaturationConfig.forceDisableFastRender) {
if (ColorSaturation.config != null && ColorSaturation.config.enabled && SaturationConfig.forceDisableFastRender) {
cir.setReturnValue(false);
}
}
Expand Down

0 comments on commit 671a9a2

Please sign in to comment.