mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-10-31 20:09:18 +00:00
Fix sounds not working for entity damage, fixes #450
This commit is contained in:
parent
5ac6731ec5
commit
2180eb935b
|
@ -120,9 +120,8 @@ public class PacketListenerSounds extends PacketAdapter {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity) {
|
||||||
/* hasInvun = ReflectionManager.getNmsField("Entity", "noDamageTicks").getInt(nmsEntity) ==
|
hasInvun =
|
||||||
ReflectionManager.getNmsField("EntityLiving", "maxNoDamageTicks")
|
ReflectionManager.getNmsField("Entity", "noDamageTicks").getInt(nmsEntity) > 0;
|
||||||
.getInt(nmsEntity);*/
|
|
||||||
} else {
|
} else {
|
||||||
Class clazz = ReflectionManager.getNmsClass("DamageSource");
|
Class clazz = ReflectionManager.getNmsClass("DamageSource");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue