From 2d84dcd44eb4315a776bdb5899d3d8e3ef65de24 Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 19 Apr 2013 22:08:07 -0700 Subject: [PATCH] Fix logic issue in CrashReportCategory patch, blame Jadedcat for sloppy quick patch. --- .../net/minecraft/crash/CrashReportCategory.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/crash/CrashReportCategory.java.patch b/patches/minecraft/net/minecraft/crash/CrashReportCategory.java.patch index d772df50ee..e877e5230f 100644 --- a/patches/minecraft/net/minecraft/crash/CrashReportCategory.java.patch +++ b/patches/minecraft/net/minecraft/crash/CrashReportCategory.java.patch @@ -10,7 +10,7 @@ + int len = astacktraceelement.length - 3 - par1; + if (len <= 0) len = astacktraceelement.length; + this.stackTrace = new StackTraceElement[len]; -+ System.arraycopy(astacktraceelement, len, this.stackTrace, 0, this.stackTrace.length); ++ System.arraycopy(astacktraceelement, astacktraceelement.length - len, this.stackTrace, 0, this.stackTrace.length); return this.stackTrace.length; }