optional mixins to provide better compatibility. fixes #788
This commit is contained in:
1 parent
470821524d
commit
5c7bbc19ad
2 files changed
+4
-4
No files matched your search
@@ -7,10 +7,10 @@ import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
@Mixin(SoundSystem.class)
|
||||
@Mixin(value = SoundSystem.class, priority = 69420)
|
||||
public class SoundSystem_cleanLogsMixin
|
||||
{
|
||||
@Redirect(method = "play(Lnet/minecraft/client/sound/SoundInstance;)V", at = @At( remap = false,
|
||||
@Redirect(method = "play(Lnet/minecraft/client/sound/SoundInstance;)V", require = 0, at = @At( remap = false,
|
||||
value = "INVOKE",
|
||||
target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;)V"
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user