From 79f28d077caa1964436328c63e108e838e96329a Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 18 Mar 2023 20:14:16 +0100 Subject: [PATCH] fix: call right type of builder for fields --- src/main/java/ftbsc/lll/processor/LilleroProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java index c1c8c16..2457e83 100644 --- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java +++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java @@ -10,6 +10,7 @@ import ftbsc.lll.processor.annotations.Patch; import ftbsc.lll.processor.annotations.Target; import ftbsc.lll.processor.tools.ArrayContainer; import ftbsc.lll.processor.tools.obfuscation.ObfuscationMapper; +import ftbsc.lll.proxies.FieldProxy; import ftbsc.lll.proxies.MethodProxy; import javax.annotation.processing.*; @@ -330,7 +331,7 @@ public class LilleroProcessor extends AbstractProcessor { b.addStatement("$T bd = $T.builder($S)", MethodProxy.Builder.class, - MethodProxy.class, + isMethod ? MethodProxy.class : FieldProxy.class, findMemberName(targetParentFQN, target.getSimpleName().toString(), methodDescriptor, mapper) );