@@ -83,7 +83,7 @@ public static BlockRenderLayer getEffectiveBloomLayer() {
8383 */
8484 @ Contract ("null -> _; !null -> !null" )
8585 public static BlockRenderLayer getEffectiveBloomLayer (BlockRenderLayer fallback ) {
86- return Mods .Optifine .isModLoaded () ? fallback : bloom ;
86+ return Mods .ShadersMod .isModLoaded () ? fallback : bloom ;
8787 }
8888
8989 /**
@@ -115,7 +115,7 @@ public static BlockRenderLayer getEffectiveBloomLayer(boolean isBloomActive) {
115115 */
116116 @ Contract ("_, null -> _; _, !null -> !null" )
117117 public static BlockRenderLayer getEffectiveBloomLayer (boolean isBloomActive , BlockRenderLayer fallback ) {
118- return Mods .Optifine .isModLoaded () || !isBloomActive ? fallback : bloom ;
118+ return Mods .ShadersMod .isModLoaded () || !isBloomActive ? fallback : bloom ;
119119 }
120120
121121 /**
@@ -253,7 +253,7 @@ public static BloomRenderTicket registerBloomRender(@Nullable IRenderSetup setup
253253 @ NotNull IBloomEffect render ,
254254 @ Nullable Predicate <BloomRenderTicket > validityChecker ,
255255 @ Nullable Supplier <World > worldContext ) {
256- if (Mods .Optifine .isModLoaded ()) return BloomRenderTicket .INVALID ;
256+ if (Mods .ShadersMod .isModLoaded ()) return BloomRenderTicket .INVALID ;
257257 BloomRenderTicket ticket = new BloomRenderTicket (setup , bloomType , render , validityChecker , worldContext );
258258 BLOOM_RENDER_LOCK .lock ();
259259 try {
@@ -302,7 +302,7 @@ public static int renderBloomBlockLayer(RenderGlobal renderGlobal,
302302 @ NotNull Entity entity ) {
303303 Minecraft .getMinecraft ().profiler .endStartSection ("BTLayer" );
304304
305- if (Mods .Optifine .isModLoaded ()) {
305+ if (Mods .ShadersMod .isModLoaded ()) {
306306 return renderGlobal .renderBlockLayer (blockRenderLayer , partialTicks , pass , entity );
307307 }
308308
0 commit comments