Skip to content

Commit

Permalink
add transformer bootstrap to forge (this doesnt work lol)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jul 30, 2024
1 parent 258f842 commit 7b2aa41
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,6 +20,11 @@ class ClassTransformer : net.minecraft.launchwrapper.IClassTransformer, Transfor
ArrayListMultimap.create()
private val transformers: MutableList<IClassTransformer> = ArrayList()
private val outputBytecode = System.getProperty("debugBytecode", "false").toBoolean()

init {
bootstrapTransformer(this)
}

private fun registerTransformer(transformer: IClassTransformer) {
val classes = transformer.getClassNames()
if (classes == null) {
Expand Down

0 comments on commit 7b2aa41

Please sign in to comment.