Skip to content

Commit

Permalink
Fix reloading not properly working when toggling cloud shading with S…
Browse files Browse the repository at this point in the history
…odium installed
  • Loading branch information
StartsMercury committed Jun 2, 2024
1 parent d7e5ea0 commit 66f612e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.startsmercury.simply_no_shading.impl.client;

import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.client.renderer.LevelRenderer;

public enum ReloadType {
Expand All @@ -12,7 +13,11 @@ public static ReloadType blocks() {
}

public static ReloadType clouds() {
return ReloadType.NEEDS_UPDATE;
if (FabricLoader.getInstance().isModLoaded("sodium")) {
return ReloadType.ALL_CHANGED;
} else {
return ReloadType.NEEDS_UPDATE;
}
}

public void applyTo(final LevelRenderer levelRenderer) {
Expand Down

0 comments on commit 66f612e

Please sign in to comment.