aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2021-12-29 20:55:23 +0800
committerGitHub <noreply@github.com>2021-12-29 13:55:23 +0100
commit109151216f6ba3c0109ff5f8f848c3a37d543a84 (patch)
treed3801a22647e4047a71025ef2dc16379a04aeda1 /src/main
parentd93eed3658a7688e770647ab2d8e079e877816a0 (diff)
downloadGT5-Unofficial-109151216f6ba3c0109ff5f8f848c3a37d543a84.tar.gz
GT5-Unofficial-109151216f6ba3c0109ff5f8f848c3a37d543a84.tar.bz2
GT5-Unofficial-109151216f6ba3c0109ff5f8f848c3a37d543a84.zip
Fix copy pasting error (#78)
Former-commit-id: e3ad540439325619fd59374a65a7fd88e089355d
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java b/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java
index f1276c4d3d..ed9aa6b2e8 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/util/CachedReflectionUtils.java
@@ -15,7 +15,7 @@ public class CachedReflectionUtils {
}
public static Field getDeclaredField(final Class<?> cls, final String fieldName) {
- return fields.get(cls).computeIfAbsent(fieldName, f -> FieldUtils.getDeclaredField(cls, f, true));
+ return declaredFields.get(cls).computeIfAbsent(fieldName, f -> FieldUtils.getDeclaredField(cls, f, true));
}
private static class ConcurrentMapClassValue extends ClassValue<Map<String, Field>> {