From 874bee3f093b0cb2218a6927ec42bb676c273122 Mon Sep 17 00:00:00 2001 From: IMS212 Date: Sun, 4 Aug 2024 16:58:06 -0700 Subject: [PATCH] Fix pipeline spam --- .../java/net/irisshaders/iris/compat/dh/DHCompatInternal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java b/common/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java index cce228d625..21eec5672e 100644 --- a/common/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java +++ b/common/src/main/java/net/irisshaders/iris/compat/dh/DHCompatInternal.java @@ -289,6 +289,6 @@ public IDhApiGenericObjectShaderProgram getGenericShader() { } public boolean avoidRenderingClouds() { - return pipeline.getDHCloudSetting() == CloudSetting.OFF || (pipeline.getDHCloudSetting() == CloudSetting.DEFAULT && pipeline.getCloudSetting() == CloudSetting.OFF); + return pipeline != null && (pipeline.getDHCloudSetting() == CloudSetting.OFF || (pipeline.getDHCloudSetting() == CloudSetting.DEFAULT && pipeline.getCloudSetting() == CloudSetting.OFF)); } }