fix: call right type of builder for fields

This commit is contained in:
zaaarf 2023-03-18 20:14:16 +01:00
parent 1f0db87478
commit 79f28d077c
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -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)
);