diff --git a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java index 2457e83..b68eddd 100644 --- a/src/main/java/ftbsc/lll/processor/LilleroProcessor.java +++ b/src/main/java/ftbsc/lll/processor/LilleroProcessor.java @@ -330,7 +330,7 @@ public class LilleroProcessor extends AbstractProcessor { String methodDescriptor = isMethod ? descriptorFromExecutableElement((ExecutableElement) target) : null; b.addStatement("$T bd = $T.builder($S)", - MethodProxy.Builder.class, + isMethod ? MethodProxy.Builder.class : FieldProxy.Builder.class, isMethod ? MethodProxy.class : FieldProxy.class, findMemberName(targetParentFQN, target.getSimpleName().toString(), methodDescriptor, mapper) );