Don't bother checking if their sound type is a death or hurt or w/e
This commit is contained in:
		| @@ -79,8 +79,7 @@ public class PacketListenerSounds extends PacketAdapter { | ||||
|                 } | ||||
|  | ||||
|                 if ((!(entity instanceof LivingEntity)) || ((LivingEntity) entity).getHealth() > 0) { | ||||
|                     boolean hasInvun = ReflectionManager.hasInvul(entity); | ||||
|                     soundType = soundGroup.getType(soundEffectObj, !hasInvun); | ||||
|                     soundType = soundGroup.getType(soundEffectObj); | ||||
|                 } else { | ||||
|                     soundType = SoundType.DEATH; | ||||
|                 } | ||||
|   | ||||
| @@ -121,18 +121,12 @@ public class SoundGroup { | ||||
|     /** | ||||
|      * Used to check if this sound name is owned by this disguise sound. | ||||
|      */ | ||||
|     public SoundType getType(Object sound, boolean ignoreDamage) { | ||||
|     public SoundType getType(Object sound) { | ||||
|         if (sound == null) { | ||||
|             return SoundType.CANCEL; | ||||
|         } | ||||
|  | ||||
|         SoundType soundType = getSound(sound); | ||||
|  | ||||
|         if (soundType == SoundType.DEATH || (ignoreDamage && soundType == SoundType.HURT)) { | ||||
|             return null; | ||||
|         } | ||||
|  | ||||
|         return soundType; | ||||
|         return getSound(sound); | ||||
|     } | ||||
|  | ||||
|     public boolean isCancelSound(String sound) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user