mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 22:43:56 +01:00
Fix iris compat
This commit is contained in:
parent
05b82b50ca
commit
6cc2b74eef
@ -23,7 +23,7 @@ public final class ShadersModHandler {
|
|||||||
Package optifinePackage = Package.getPackage(OPTIFINE_ROOT_PACKAGE);
|
Package optifinePackage = Package.getPackage(OPTIFINE_ROOT_PACKAGE);
|
||||||
IS_OPTIFINE_INSTALLED = optifinePackage != null;
|
IS_OPTIFINE_INSTALLED = optifinePackage != null;
|
||||||
|
|
||||||
// OptiFine and Iris/Oculus are assumed to be mutually exclusive
|
// OptiFine and Iris are assumed to be mutually exclusive
|
||||||
|
|
||||||
if (IS_IRIS_LOADED) {
|
if (IS_IRIS_LOADED) {
|
||||||
FlwLibLink.INSTANCE.getLogger().debug("Iris detected.");
|
FlwLibLink.INSTANCE.getLogger().debug("Iris detected.");
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package dev.engine_room.flywheel.impl.compat;
|
package dev.engine_room.flywheel.impl.compat;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
import dev.engine_room.flywheel.impl.FlwImplXplat;
|
import dev.engine_room.flywheel.impl.FlwImplXplat;
|
||||||
@ -12,7 +13,7 @@ public enum CompatMods {
|
|||||||
private final Supplier<Boolean> isLoaded;
|
private final Supplier<Boolean> isLoaded;
|
||||||
|
|
||||||
CompatMods() {
|
CompatMods() {
|
||||||
isLoaded = FlwImplXplat.INSTANCE.getModLoaded(name());
|
isLoaded = FlwImplXplat.INSTANCE.getModLoaded(name().toLowerCase(Locale.ROOT));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLoaded() {
|
public boolean isLoaded() {
|
||||||
|
@ -52,7 +52,7 @@ public class FlwLibXplatImpl implements FlwLibXplat {
|
|||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public ShadersModHandler.InternalHandler createIrisHandler() {
|
public ShadersModHandler.InternalHandler createIrisHandler() {
|
||||||
if (CompatMods.IRIS.isLoaded()) {
|
if (!CompatMods.IRIS.isLoaded()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user