Fix mixin target
This commit is contained in:
parent
19ba30280c
commit
af8e23f41a
|
|
@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
public class CrashReportMixin {
|
public class CrashReportMixin {
|
||||||
@Shadow @Final private Throwable exception;
|
@Shadow @Final private Throwable exception;
|
||||||
|
|
||||||
@Inject(method = "addCategory(Ljava/lang/String;I)Lnet/minecraft/CrashReportCategory;", at = @At(value = "INVOKE", target = "Ljava/io/PrintStream;println(Ljava/lang/String;)V"))
|
@Inject(method = "addCategory(Ljava/lang/String;I)Lnet/minecraft/CrashReportCategory;", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;error(Ljava/lang/String;[Ljava/lang/Object;)V", remap = false))
|
||||||
private void dumpStacktrace(String s, int i, CallbackInfoReturnable<CrashReportCategory> cir) {
|
private void dumpStacktrace(String s, int i, CallbackInfoReturnable<CrashReportCategory> cir) {
|
||||||
new Exception("ModernFix crash stacktrace").printStackTrace();
|
new Exception("ModernFix crash stacktrace").printStackTrace();
|
||||||
if(this.exception != null)
|
if(this.exception != null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user