Skip to content

Commit

Permalink
fix: fixed the sound overloading
Browse files Browse the repository at this point in the history
  • Loading branch information
meza committed Jul 18, 2023
1 parent 2bcf056 commit dfc96db
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
@Mixin(SoundSystem.class)
public class SoundInterceptorMixin {


@Inject(at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;debug(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V"), method = "play(Lnet/minecraft/client/sound/SoundInstance;)V", cancellable = true)
@Inject(at = @At("HEAD"), method = "play(Lnet/minecraft/client/sound/SoundInstance;)V", cancellable = true)
private void run(SoundInstance sound, CallbackInfo info) {
String id = sound.getId().toString();
String name = sound.getId().toTranslationKey();
Expand Down

0 comments on commit dfc96db

Please sign in to comment.