From 7b2aa415ae44aa374b48dc81431c558722804690 Mon Sep 17 00:00:00 2001 From: ev chang Date: Wed, 31 Jul 2024 05:41:18 +0900 Subject: [PATCH] add transformer bootstrap to forge (this doesnt work lol) --- .../zani/spice/platform/impl/forge/asm/ClassTransformer.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/versions/src/main/kotlin/wtf/zani/spice/platform/impl/forge/asm/ClassTransformer.kt b/versions/src/main/kotlin/wtf/zani/spice/platform/impl/forge/asm/ClassTransformer.kt index 4c008c2..0266a53 100644 --- a/versions/src/main/kotlin/wtf/zani/spice/platform/impl/forge/asm/ClassTransformer.kt +++ b/versions/src/main/kotlin/wtf/zani/spice/platform/impl/forge/asm/ClassTransformer.kt @@ -8,6 +8,7 @@ import org.objectweb.asm.ClassWriter import org.objectweb.asm.tree.ClassNode import wtf.zani.spice.platform.api.IClassTransformer import wtf.zani.spice.platform.api.Transformer +import wtf.zani.spice.platform.bootstrapTransformer import java.io.File import java.io.FileOutputStream import java.io.IOException @@ -19,6 +20,11 @@ class ClassTransformer : net.minecraft.launchwrapper.IClassTransformer, Transfor ArrayListMultimap.create() private val transformers: MutableList = ArrayList() private val outputBytecode = System.getProperty("debugBytecode", "false").toBoolean() + + init { + bootstrapTransformer(this) + } + private fun registerTransformer(transformer: IClassTransformer) { val classes = transformer.getClassNames() if (classes == null) {