From 999f0500c73b21186b9a52a98b2984649edc166b Mon Sep 17 00:00:00 2001 From: zaaarf Date: Mon, 17 Apr 2023 00:14:48 +0200 Subject: [PATCH] fix: do not use the original class name as patch name --- src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java index 2dc2527..32f5826 100644 --- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java +++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java @@ -348,7 +348,7 @@ public class LilleroProcessor extends AbstractProcessor { .superclass(cl.asType()) .addSuperinterface(ClassName.get(IInjector.class)) .addMethod(constructorBuilder.build()) - .addMethod(buildStringReturnMethod("name", cl.getSimpleName().toString())) + .addMethod(buildStringReturnMethod("name", injName)) .addMethod(buildStringReturnMethod("reason", toGenerate.get(injName).reason)) .addMethod(buildStringReturnMethod("targetClass", obfuscateInjectorMetadata ? targetClass.fqnObf : targetClass.fqn)) .addMethod(buildStringReturnMethod("methodName", obfuscateInjectorMetadata ? target.nameObf : target.name))