Ignore static bounding fields

This commit is contained in:
libraryaddict 2020-08-28 04:57:03 +12:00
parent 86a757626b
commit 33b7a5e8c8

View File

@ -457,7 +457,7 @@ public class ReflectionManager {
int stage = 0; int stage = 0;
for (Field field : boundingBox.getClass().getDeclaredFields()) { for (Field field : boundingBox.getClass().getDeclaredFields()) {
if (!field.getType().getSimpleName().equals("double")) { if (!field.getType().getSimpleName().equals("double") || Modifier.isStatic(field.getModifiers())) {
continue; continue;
} }