aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-18 20:14:16 +0100
committer zaaarf <zaaarf@proton.me>2023-03-18 20:14:16 +0100
commit79f28d077caa1964436328c63e108e838e96329a (patch)
tree13cb73cf9db83e09b7c7208cf7b8ce67b398bee5 /src/main/java/ftbsc/lll
parent1f0db874780948f4483845284a2c5b57a0f2df4e (diff)
fix: call right type of builder for fields
Diffstat (limited to 'src/main/java/ftbsc/lll')
-rw-r--r--src/main/java/ftbsc/lll/processor/LilleroProcessor.java3
1 files changed, 2 insertions, 1 deletions
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)
);