mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Don't try to access non-static
This commit is contained in:
parent
a14cb9aadd
commit
cffa7591d9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user