We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4eac6f commit ce561ddCopy full SHA for ce561dd
src/main/java/org/polyfrost/polyplus/mixin/Mixin_NoAI.java
@@ -17,7 +17,15 @@
17
@Mixin(CrashReport.class)
18
public class Mixin_NoAI {
19
@SuppressWarnings("StringBufferReplaceableByString")
20
- @Inject(method = "getCompleteReport", at = @At("RETURN"), cancellable = true)
+ @Inject(
21
+ //#if MC >= 1.21.1
22
+ //$$ method = "getFriendlyReport(Lnet/minecraft/ReportType;Ljava/util/List;)Ljava/lang/String;",
23
+ //#else
24
+ method = "getCompleteReport",
25
+ //#endif
26
+ at = @At("RETURN"),
27
+ cancellable = true
28
+ )
29
private void addNoAIComment(CallbackInfoReturnable<String> cir) {
30
StringBuilder builder = new StringBuilder(cir.getReturnValue());
31
builder.append("\n\n").append("---").append("\n");
0 commit comments