Fixed error..
This commit is contained in:
parent
67594c6c9b
commit
f4a88a6ee7
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user