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 a898b59e..751ce2d2 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -235,6 +235,10 @@ public class ReflectionManager { isInvul = getNmsMethod("Entity", "isInvulnerable", getNmsClass("DamageSource")); for (Field f : getNmsClass("DamageSource").getFields()) { + if (!Modifier.isStatic(f.getModifiers())) { + continue; + } + Object obj = f.get(null); if (obj == null) {