Skip to content

Commit

Permalink
Fix iris compat
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 6, 2024
1 parent 05b82b5 commit 6cc2b74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public MultiBlockModelBuilder createMultiBlockModelBuilder(BlockAndTintGetter le
@Override
@Nullable
public ShadersModHandler.InternalHandler createIrisHandler() {
if (CompatMods.IRIS.isLoaded()) {
if (!CompatMods.IRIS.isLoaded()) {
return null;
}

Expand Down

0 comments on commit 6cc2b74

Please sign in to comment.