diff --git a/modules/core/src/main/kotlin/org/polyfrost/spice/patcher/lwjgl/LwjglProvider.kt b/modules/core/src/main/kotlin/org/polyfrost/spice/patcher/lwjgl/LwjglProvider.kt index ac0e2c0..631a92b 100644 --- a/modules/core/src/main/kotlin/org/polyfrost/spice/patcher/lwjgl/LwjglProvider.kt +++ b/modules/core/src/main/kotlin/org/polyfrost/spice/patcher/lwjgl/LwjglProvider.kt @@ -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) } }) diff --git a/versions/build.gradle.kts b/versions/build.gradle.kts index 6a8d1e1..8d932ea 100644 --- a/versions/build.gradle.kts +++ b/versions/build.gradle.kts @@ -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}"