mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-14 12:50:13 +00:00
Get the damage source not the field
This commit is contained in:
parent
322deb3d47
commit
f106ab9c19
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue