but why would the deobfuscated work but not the obfuscated one?
obfuscated:
if (arg0.equals("bg")) {
System.out.println("** INSIDE OBFUSCATED DISPENSE BEHAVIOR TRANSFORMER ABOUT TO PATCH: " + arg0);
return patchClassASM(arg0, arg2, true);
}
deobfuscated (this works):
if (arg0.equals("net.minecraft.dispenser.BehaviorDefaultDispenseItem")) {
System.out.println("***** INSIDE DISPENSE BEHAVIOR TRANSFORMER ABOUT TO PATCH:" + arg0);
return patchClassASM(arg0, arg2, false);
}
in patchClassASM I have this:
if (obfuscated == true)
targetMethodName = "a";
else
targetMethodName = "dispense";
maybe "a" is incorrect?
in methods.csv, the method dispense says the "searge" is "func_82482_a"