mirror of
https://github.com/yushijinhun/authlib-injector.git
synced 2024-11-15 06:11:09 +01:00
Remove duplicate ldc transform log
This commit is contained in:
parent
029782551d
commit
27e775114c
1 changed files with 0 additions and 2 deletions
|
@ -4,7 +4,6 @@ import static org.objectweb.asm.Opcodes.ASM6;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import org.objectweb.asm.ClassVisitor;
|
import org.objectweb.asm.ClassVisitor;
|
||||||
import org.objectweb.asm.MethodVisitor;
|
import org.objectweb.asm.MethodVisitor;
|
||||||
import moe.yushi.authlibinjector.util.Logging;
|
|
||||||
|
|
||||||
public abstract class LdcTransformUnit implements TransformUnit {
|
public abstract class LdcTransformUnit implements TransformUnit {
|
||||||
|
|
||||||
|
@ -22,7 +21,6 @@ public abstract class LdcTransformUnit implements TransformUnit {
|
||||||
Optional<String> transformed = transformLdc((String) cst);
|
Optional<String> transformed = transformLdc((String) cst);
|
||||||
if (transformed.isPresent() && !transformed.get().equals(cst)) {
|
if (transformed.isPresent() && !transformed.get().equals(cst)) {
|
||||||
modifiedCallback.run();
|
modifiedCallback.run();
|
||||||
Logging.TRANSFORM.fine("Transformed string [" + cst + "] to [" + transformed.get() + "]");
|
|
||||||
super.visitLdcInsn(transformed.get());
|
super.visitLdcInsn(transformed.get());
|
||||||
} else {
|
} else {
|
||||||
super.visitLdcInsn(cst);
|
super.visitLdcInsn(cst);
|
||||||
|
|
Loading…
Reference in a new issue