dont remap args

This commit is contained in:
mcrcortex
2025-05-17 14:21:26 +10:00
parent 5d91a5bc09
commit 40c6d50d5e

View File

@@ -7,11 +7,10 @@ import org.slf4j.Logger;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique; import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
@Mixin(GlDebug.class) @Mixin(GlDebug.class)
public class MixinGlDebug { public class MixinGlDebug {
@WrapOperation(method = "onDebugMessage", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;info(Ljava/lang/String;Ljava/lang/Object;)V")) @WrapOperation(method = "onDebugMessage", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;info(Ljava/lang/String;Ljava/lang/Object;)V", remap = false))
private void voxy$wrapDebug(Logger instance, String base, Object msgObj, Operation<Void> original) { private void voxy$wrapDebug(Logger instance, String base, Object msgObj, Operation<Void> original) {
if (msgObj instanceof GlDebug.DebugMessage msg) { if (msgObj instanceof GlDebug.DebugMessage msg) {
var throwable = new Throwable(msg.toString()); var throwable = new Throwable(msg.toString());