Advertisement
YTG123

Untitled

Nov 27th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. @Mixin(SoundSystem.class)
  2. public abstract class SoundSystemMixin {
  3.     @ModifyArg(method = "getAdjustedPitch(Lnet/minecraft/client/sound/SoundInstance;)F",
  4.                at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/MathHelper;clamp(FFF)F"),
  5.                index = 1)
  6.     private float yeetLowerLimit() {
  7.         return Float.MIN_VALUE;
  8.     }
  9.  
  10.     @ModifyArg(method = "getAdjustedPitch(Lnet/minecraft/client/sound/SoundInstance;)F",
  11.                at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/MathHelper;clamp(FFF)F"),
  12.                index = 2)
  13.     private float yeetUpperLimit() {
  14.         return Float.MAX_VALUE;
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement