Skip to content

Commit

Permalink
fix: forge class circularity exception & incorrect transformer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxnii committed Oct 18, 2024
1 parent ea6a6a0 commit 6120c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ class LwjglProvider {

val url = URL("spice", "", -1, "/", object : URLStreamHandler() {
override fun openConnection(url: URL): URLConnection? {
return UrlByteArrayConnection(
readFile(url.path.replaceFirst("/", ""))
?: return null, url
)
val buffer = readFile(url.path.replaceFirst("/", "")) ?: return null

return UrlByteArrayConnection(buffer, url)
}
})

Expand Down
2 changes: 1 addition & 1 deletion versions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

val tweakClass = "org.spongepowered.asm.launch.MixinTweaker"
val transformerPlugin = "org.polyfrost.spice.platform.impl.forge.TransformerPlugin"
val transformerPlugin = "org.polyfrost.spice.platform.impl.forge.asm.TransformerPlugin"

base.archivesName = "Spice-${platform}"

Expand Down

0 comments on commit 6120c8d

Please sign in to comment.