Skip to content

Commit

Permalink
Update obfuscated class name in coremod
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfa-ag committed May 6, 2016
1 parent bf2bd61 commit 4374925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ljfa/tntutils/asm/ExplosionTransformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
if(name.equals("net.minecraft.world.Explosion")) {
coreLogger.info("About to patch class %s", name);
return patchClassASM(name, basicClass, false);
} else if(name.equals("adi")) {
} else if(name.equals("ahp")) {
coreLogger.info("About to patch obfuscated class %s", name);
return patchClassASM(name, basicClass, true);
} else
Expand Down Expand Up @@ -63,7 +63,7 @@ private void patchDoExplosionB(MethodNode mn) {
boolean didInject = false;
while(it.hasNext()) {
AbstractInsnNode currentNode = it.next();
/* In the Explosion class, line 221:
/* In the Explosion class, line 238:
*
* Currently, the division 1.0F / this.explosionSize for the drop chance is being performed.
* We want to get rid of this and instead call a hook method that calculates the chance for us.
Expand Down Expand Up @@ -106,6 +106,6 @@ private void patchDoExplosionB(MethodNode mn) {
if(didInject)
coreLogger.info("Successfully injected into %s%s", mn.name, mn.desc);
else
coreLogger.error("Failed injection into %s%s. There is probably an incompatibility to some other coremod.", mn.name, mn.desc);
coreLogger.error("Failed injection into %s%s. There is probably an incompatibility with some other core mod.", mn.name, mn.desc);
}
}

0 comments on commit 4374925

Please sign in to comment.