mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-23 19:16:14 +01:00
Ignore static fields in wrapper class for AutoWrapper (#2401)
This commit is contained in:
parent
a6903c2bb0
commit
339b2ef923
@ -151,6 +151,7 @@ public class AutoWrapper<T> implements EquivalentConverter<T> {
|
||||
if (wrapperAccessors == null) {
|
||||
wrapperAccessors = Arrays
|
||||
.stream(wrapperClass.getDeclaredFields())
|
||||
.filter(field -> !Modifier.isStatic(field.getModifiers()))
|
||||
.map(Accessors::getFieldAccessor)
|
||||
.toArray(FieldAccessor[]::new);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user