Fix iris compat

This commit is contained in:
IThundxr 2024-10-06 13:28:43 -04:00
parent 05b82b50ca
commit 6cc2b74eef
No known key found for this signature in database
GPG Key ID: E291EC97BAF935E6
3 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@ public final class ShadersModHandler {
Package optifinePackage = Package.getPackage(OPTIFINE_ROOT_PACKAGE);
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) {
FlwLibLink.INSTANCE.getLogger().debug("Iris detected.");

View File

@ -1,5 +1,6 @@
package dev.engine_room.flywheel.impl.compat;
import java.util.Locale;
import java.util.function.Supplier;
import dev.engine_room.flywheel.impl.FlwImplXplat;
@ -12,7 +13,7 @@ public enum CompatMods {
private final Supplier<Boolean> isLoaded;
CompatMods() {
isLoaded = FlwImplXplat.INSTANCE.getModLoaded(name());
isLoaded = FlwImplXplat.INSTANCE.getModLoaded(name().toLowerCase(Locale.ROOT));
}
public boolean isLoaded() {

View File

@ -52,7 +52,7 @@ public class FlwLibXplatImpl implements FlwLibXplat {
@Override
@Nullable
public ShadersModHandler.InternalHandler createIrisHandler() {
if (CompatMods.IRIS.isLoaded()) {
if (!CompatMods.IRIS.isLoaded()) {
return null;
}