mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-10-25 20:22:22 +00:00
Properly gate end flash (#1954)
This commit is contained in:
1 parent
4fd98e5026
commit
8cf0296284
2 files changed
+5
-2
No files matched your search
@@ -8,7 +8,7 @@ import ganymedes01.etfuturum.api.client.EndFlashAPI;
|
||||
*/
|
||||
public final class EndFlashCompat {
|
||||
|
||||
private static final boolean AVAILABLE = Loader.isModLoaded("etfuturum");
|
||||
private static final boolean AVAILABLE = Loader.isModLoaded("etfuturum") && EndFlashCompat.class.getResource("/ganymedes01/etfuturum/api/client/EndFlashAPI.class") != null;
|
||||
|
||||
private EndFlashCompat() {}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.coderbot.iris.uniforms;
|
||||
|
||||
import com.gtnewhorizons.angelica.compat.etfuturum.EndFlashCompat;
|
||||
import com.gtnewhorizons.angelica.compat.etfuturum.EtFuturumCompat;
|
||||
import com.gtnewhorizons.angelica.compat.mojang.Camera;
|
||||
import com.gtnewhorizons.angelica.compat.mojang.GameModeUtil;
|
||||
@@ -46,7 +47,9 @@ public class IrisExclusiveUniforms {
|
||||
|
||||
// Et Futurum Requiem backports the End Flash
|
||||
final EndFlashStorage endFlashStorage = new EndFlashStorage();
|
||||
updateNotifier.addListener(endFlashStorage::tick);
|
||||
if (EndFlashCompat.isAvailable()) {
|
||||
updateNotifier.addListener(endFlashStorage::tick);
|
||||
}
|
||||
|
||||
//All Iris-exclusive uniforms (uniforms which do not exist in either OptiFine or ShadersMod) should be registered here.
|
||||
uniforms.uniform1f(UniformUpdateFrequency.PER_FRAME, "thunderStrength", IrisExclusiveUniforms::getThunderStrength);
|
||||
|
||||
Reference in new issue
Block a user