From 33b7a5e8c8afa21eed782f6848050696ae8aad23 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 28 Aug 2020 04:57:03 +1200 Subject: [PATCH] Ignore static bounding fields --- .../disguise/utilities/reflection/ReflectionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index 76c53f5b..db75693a 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -457,7 +457,7 @@ public class ReflectionManager { int stage = 0; for (Field field : boundingBox.getClass().getDeclaredFields()) { - if (!field.getType().getSimpleName().equals("double")) { + if (!field.getType().getSimpleName().equals("double") || Modifier.isStatic(field.getModifiers())) { continue; }