mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Don't try to access non-static
This commit is contained in:
parent
a14cb9aadd
commit
cffa7591d9
1 changed files with 4 additions and 0 deletions
|
@ -235,6 +235,10 @@ public class ReflectionManager {
|
||||||
isInvul = getNmsMethod("Entity", "isInvulnerable", getNmsClass("DamageSource"));
|
isInvul = getNmsMethod("Entity", "isInvulnerable", getNmsClass("DamageSource"));
|
||||||
|
|
||||||
for (Field f : getNmsClass("DamageSource").getFields()) {
|
for (Field f : getNmsClass("DamageSource").getFields()) {
|
||||||
|
if (!Modifier.isStatic(f.getModifiers())) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Object obj = f.get(null);
|
Object obj = f.get(null);
|
||||||
|
|
||||||
if (obj == null) {
|
if (obj == null) {
|
||||||
|
|
Loading…
Reference in a new issue