|
1 | 1 | --- before/net/minecraft/crash/CrashReport.java |
2 | 2 | +++ after/net/minecraft/crash/CrashReport.java |
3 | | -@@ -13,6 +13,7 @@ |
4 | | - import java.text.SimpleDateFormat; |
5 | | - import java.util.Date; |
6 | | - import java.util.List; |
7 | | -+ |
8 | | - import net.minecraft.util.ReportedException; |
9 | | - import net.minecraft.world.gen.layer.IntCache; |
10 | | - import net.minecraftforge.fml.relauncher.Side; |
11 | | -@@ -116,6 +117,7 @@ |
| 3 | +@@ -116,6 +116,7 @@ |
12 | 4 | return IntCache.getCacheSizes(); |
13 | 5 | } |
14 | 6 | }); |
15 | 7 | + net.minecraftforge.fml.common.FMLCommonHandler.instance().enhanceCrashReport(this, this.systemDetailsCategory); |
16 | 8 | } |
17 | 9 |
|
18 | 10 | public String getDescription() |
19 | | -@@ -198,18 +200,19 @@ |
| 11 | +@@ -198,13 +199,14 @@ |
20 | 12 | IOUtils.closeQuietly((Writer)printwriter); |
21 | 13 | } |
22 | 14 |
|
|
32 | 24 | stringbuilder.append("// "); |
33 | 25 | stringbuilder.append(getWittyComment()); |
34 | 26 | stringbuilder.append("\n\n"); |
35 | | - stringbuilder.append("Time: "); |
36 | | -- stringbuilder.append(new SimpleDateFormat().format(new Date())); |
37 | | -+ stringbuilder.append((new SimpleDateFormat()).format(new Date())); |
38 | | - stringbuilder.append("\n"); |
39 | | - stringbuilder.append("Description: "); |
40 | | - stringbuilder.append(this.description); |
41 | | -@@ -217,7 +220,7 @@ |
42 | | - stringbuilder.append(this.getCauseStackTraceOrString()); |
43 | | - stringbuilder.append("\n\nA detailed walkthrough of the error, its code path and all known details is as follows:\n"); |
44 | | - |
45 | | -- for (int i = 0; i < 87; i++) |
46 | | -+ for (int i = 0; i < 87; ++i) |
47 | | - { |
48 | | - stringbuilder.append("-"); |
49 | | - } |
50 | | -@@ -247,26 +250,27 @@ |
51 | | - } |
52 | | - |
53 | | - Writer writer = null; |
54 | | -- boolean flag; |
55 | | -+ boolean flag1; |
56 | | - |
57 | | - try |
58 | | - { |
59 | | - writer = new OutputStreamWriter(new FileOutputStream(toFile), StandardCharsets.UTF_8); |
60 | | - writer.write(this.getCompleteReport()); |
61 | | - this.crashReportFile = toFile; |
62 | | -- return true; |
63 | | -+ boolean lvt_3_1_ = true; |
64 | | -+ return lvt_3_1_; |
65 | | - } |
66 | | - catch (Throwable throwable) |
67 | | - { |
68 | | - LOGGER.error("Could not save crash report to {}", toFile, throwable); |
69 | | -- flag = false; |
70 | | -+ flag1 = false; |
71 | | - } |
72 | | - finally |
73 | | - { |
74 | | - IOUtils.closeQuietly(writer); |
75 | | - } |
76 | | - |
77 | | -- return flag; |
78 | | -+ return flag1; |
79 | | - } |
80 | | - } |
81 | | - |
82 | | -@@ -331,49 +335,13 @@ |
83 | | - |
84 | | - private static String getWittyComment() |
85 | | - { |
86 | | -- String[] astring = new String[] |
87 | | -- { |
88 | | -- "Who set us up the TNT?", |
89 | | -- "Everything's going to plan. No, really, that was supposed to happen.", |
90 | | -- "Uh... Did I do that?", |
91 | | -- "Oops.", |
92 | | -- "Why did you do that?", |
93 | | -- "I feel sad now :(", |
94 | | -- "My bad.", |
95 | | -- "I'm sorry, Dave.", |
96 | | -- "I let you down. Sorry :(", |
97 | | -- "On the bright side, I bought you a teddy bear!", |
98 | | -- "Daisy, daisy...", |
99 | | -- "Oh - I know what I did wrong!", |
100 | | -- "Hey, that tickles! Hehehe!", |
101 | | -- "I blame Dinnerbone.", |
102 | | -- "You should try our sister game, Minceraft!", |
103 | | -- "Don't be sad. I'll do better next time, I promise!", |
104 | | -- "Don't be sad, have a hug! <3", |
105 | | -- "I just don't know what went wrong :(", |
106 | | -- "Shall we play a game?", |
107 | | -- "Quite honestly, I wouldn't worry myself about that.", |
108 | | -- "I bet Cylons wouldn't have this problem.", |
109 | | -- "Sorry :(", |
110 | | -- "Surprise! Haha. Well, this is awkward.", |
111 | | -- "Would you like a cupcake?", |
112 | | -- "Hi. I'm Minecraft, and I'm a crashaholic.", |
113 | | -- "Ooh. Shiny.", |
114 | | -- "This doesn't make any sense!", |
115 | | -- "Why is it breaking :(", |
116 | | -- "Don't do that.", |
117 | | -- "Ouch. That hurt :(", |
118 | | -- "You're mean.", |
119 | | -- "This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]", |
120 | | -- "There are four lights!", |
121 | | -- "But it works on my machine." |
122 | | -- }; |
123 | | -+ String[] astring = new String[] {"Who set us up the TNT?", "Everything's going to plan. No, really, that was supposed to happen.", "Uh... Did I do that?", "Oops.", "Why did you do that?", "I feel sad now :(", "My bad.", "I'm sorry, Dave.", "I let you down. Sorry :(", "On the bright side, I bought you a teddy bear!", "Daisy, daisy...", "Oh - I know what I did wrong!", "Hey, that tickles! Hehehe!", "I blame Dinnerbone.", "You should try our sister game, Minceraft!", "Don't be sad. I'll do better next time, I promise!", "Don't be sad, have a hug! <3", "I just don't know what went wrong :(", "Shall we play a game?", "Quite honestly, I wouldn't worry myself about that.", "I bet Cylons wouldn't have this problem.", "Sorry :(", "Surprise! Haha. Well, this is awkward.", "Would you like a cupcake?", "Hi. I'm Minecraft, and I'm a crashaholic.", "Ooh. Shiny.", "This doesn't make any sense!", "Why is it breaking :(", "Don't do that.", "Ouch. That hurt :(", "You're mean.", "This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]", "There are four lights!", "But it works on my machine."}; |
124 | | - |
125 | | - try |
126 | | - { |
127 | | - return astring[(int)(System.nanoTime() % (long)astring.length)]; |
128 | | - } |
129 | | -- catch (Throwable throwable) |
130 | | -+ catch (Throwable var2) |
131 | | - { |
132 | | - return "Witty comment unavailable :("; |
133 | | - } |
0 commit comments