Isn't ASM fun?

This commit is contained in:
Adubbz 2014-10-05 12:49:40 +11:00
parent 1fbc66d690
commit 3c7becd3fa

View file

@ -48,8 +48,10 @@ public class BOPTransformer implements IClassTransformer
@Override
public byte[] transform(String name, String transformedName, byte[] basicClass)
{
if (name.equals("net.minecraft.client.resources.model.ModelBakery"))
if (name.equals("net.minecraft.client.resources.model.ModelBakery") || name.equals("cxh"))
{
System.out.println("Tweaking ModelBakery...");
ClassNode classNode = ASMUtil.getClassNode(basicClass);
MethodNode variantsMethodNode = ASMUtil.getMethodNode(classNode, registerVariantNames, "()V");