mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-15 21:28:58 +00:00
Fix getSoundVolume on 1.18
This commit is contained in:
parent
52cb313f77
commit
dd439a78aa
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ public class ReflectionManager implements ReflectionManagerAbstract {
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
Method method = net.minecraft.world.entity.LivingEntity.class.getDeclaredMethod("getSoundVolume");
|
Method method = net.minecraft.world.entity.LivingEntity.class.getDeclaredMethod("eu");
|
||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
|
|
||||||
return (Float) method.invoke(entity);
|
return (Float) method.invoke(entity);
|
||||||
|
|
Loading…
Reference in a new issue