Added debug console output and more messing with obfuscated names

This commit is contained in:
Adubbz 2013-10-18 06:01:51 +11:00
parent 84ecd43af2
commit b777834787
5 changed files with 12 additions and 4 deletions

View file

@ -16,37 +16,45 @@ public class BOPBiomeTransitionSmoothing implements IClassTransformer
{ {
if (name.equals("net.minecraft.block.BlockFluid")) if (name.equals("net.minecraft.block.BlockFluid"))
{ {
System.out.println("Patching BlockFluid");
return BlockFluid.patchColourMultiplier(newname, bytes, false); return BlockFluid.patchColourMultiplier(newname, bytes, false);
} }
if (name.equals("apc")) if (name.equals("apc"))
{ {
System.out.println("Patching BlockFluid apc");
return BlockFluid.patchColourMultiplier(newname, bytes, true); return BlockFluid.patchColourMultiplier(newname, bytes, true);
} }
if (name.equals("net.minecraft.block.BlockGrass")) if (name.equals("net.minecraft.block.BlockGrass"))
{ {
System.out.println("Patching BlockGrass");
return BlockGrass.patchColourMultiplier(newname, bytes, false); return BlockGrass.patchColourMultiplier(newname, bytes, false);
} }
if (name.equals("aon")) if (name.equals("aon"))
{ {
System.out.println("Patching BlockGrass aon");
return BlockGrass.patchColourMultiplier(newname, bytes, true); return BlockGrass.patchColourMultiplier(newname, bytes, true);
} }
if (name.equals("net.minecraft.block.BlockLeaves")) if (name.equals("net.minecraft.block.BlockLeaves"))
{ {
System.out.println("Patching BlockLeaves");
return BlockLeaves.patchColourMultiplier(newname, bytes, false); return BlockLeaves.patchColourMultiplier(newname, bytes, false);
} }
if (name.equals("aoz")) if (name.equals("aoz"))
{ {
System.out.println("Patching BlockLeaves aoz");
return BlockLeaves.patchColourMultiplier(newname, bytes, true); return BlockLeaves.patchColourMultiplier(newname, bytes, true);
} }
if (name.equals("net.minecraft.block.BlockTallGrass")) if (name.equals("net.minecraft.block.BlockTallGrass"))
{ {
System.out.println("Patching BlockTallGrass");
return BlockTallGrass.patchColourMultiplier(newname, bytes, false); return BlockTallGrass.patchColourMultiplier(newname, bytes, false);
} }
if (name.equals("aqv")) if (name.equals("aqv"))
{ {
System.out.println("Patching BlockTallGrass aqv");
return BlockTallGrass.patchColourMultiplier(newname, bytes, true); return BlockTallGrass.patchColourMultiplier(newname, bytes, true);
} }

View file

@ -28,7 +28,7 @@ public class BlockFluid
String targetMethodName = ""; String targetMethodName = "";
if (obfuscated) if (obfuscated)
targetMethodName ="b"; targetMethodName ="d";
else else
targetMethodName ="colorMultiplier"; targetMethodName ="colorMultiplier";

View file

@ -26,7 +26,7 @@ public class BlockGrass
String targetMethodName = ""; String targetMethodName = "";
if (obfuscated) if (obfuscated)
targetMethodName ="b"; targetMethodName ="c";
else else
targetMethodName ="colorMultiplier"; targetMethodName ="colorMultiplier";

View file

@ -29,7 +29,7 @@ public class BlockLeaves
String targetMethodName = ""; String targetMethodName = "";
if (obfuscated) if (obfuscated)
targetMethodName ="b"; targetMethodName ="c";
else else
targetMethodName ="colorMultiplier"; targetMethodName ="colorMultiplier";

View file

@ -26,7 +26,7 @@ public class BlockTallGrass
String targetMethodName = ""; String targetMethodName = "";
if (obfuscated) if (obfuscated)
targetMethodName ="b"; targetMethodName ="c";
else else
targetMethodName ="colorMultiplier"; targetMethodName ="colorMultiplier";