Fixed error..

This commit is contained in:
Andrew 2013-09-20 22:15:39 +12:00
parent 67594c6c9b
commit f4a88a6ee7

View File

@ -195,7 +195,7 @@ public class LibsDisguises extends JavaPlugin {
} }
DisguiseSound sound = DisguiseSound.getType(disguiseType.name()); DisguiseSound sound = DisguiseSound.getType(disguiseType.name());
if (sound != null) { if (sound != null) {
Method soundStrength = EntityLiving.class.getDeclaredMethod("aZ"); Method soundStrength = EntityLiving.class.getDeclaredMethod("ba");
soundStrength.setAccessible(true); soundStrength.setAccessible(true);
sound.setDamageSoundVolume((Float) soundStrength.invoke(entity)); sound.setDamageSoundVolume((Float) soundStrength.invoke(entity));
} }