From f106ab9c19fe1b85fd91f77852513cd7d11edaee Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 5 Dec 2020 07:37:37 +1300 Subject: [PATCH] Get the damage source not the field --- .../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 9c28a4c0..a56c07dd 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -189,7 +189,7 @@ public class ReflectionManager { noDamageTicks = getNmsField("Entity", "noDamageTicks"); isInvul = getNmsMethod("Entity", "isInvulnerable", getNmsClass("DamageSource")); - genericDamage = getNmsField("DamageSource", "GENERIC"); + genericDamage = getNmsField("DamageSource", "GENERIC").get(null); Method method = getNmsMethod("SoundCategory", "a");