Skip to content

Commit

Permalink
fix conflicts with optifine
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jun 19, 2024
1 parent 5e6f5bc commit 289dd93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ tasks {
)
)
}

rename("(.+_at.cfg)", "META-INF/$1")
}

// Configures the resources to include if we are building for forge or fabric.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RedactionMixinPlugin : IMixinConfigPlugin {
private var optifine = false
override fun onLoad(mixinPackage: String?) {
optifine = try {
Class.forName("Config")
Class.forName("Config", false, javaClass.classLoader)
true
} catch (e: ClassNotFoundException) {
false
Expand Down

0 comments on commit 289dd93

Please sign in to comment.