Last active
December 15, 2015 17:39
-
-
Save riking/5298434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ something @@ | |
/* 219 */ paramStringBuilder.append("\n"); | |
/* */ } | |
/* */ | |
-/* 222 */ for (??? = this.d.iterator(); ((Iterator)???).hasNext(); ) { m localm = (m)((Iterator)???).next(); | |
+/* 222 */ for (Iterator it = this.d.iterator(); ((Iterator)it).hasNext(); ) { m localm = (m)((Iterator)it).next(); | |
/* 223 */ localm.a(paramStringBuilder); | |
/* 224 */ paramStringBuilder.append("\n\n"); | |
/* */ } | |
@@ something @@ | |
/* */ | |
/* 104 */ this.c.a("Suspicious classes", new j(this)); | |
/* */ | |
/* 186 */ this.c.a("IntCache", new l(this)); | |
+this.c.a("Scoreboard", new ScoreboardCrash(this)); | |
/* */ } | |
/* */ | |
/* */ public String a() | |
/* */ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Field; | |
import java.util.HashMap; | |
import java.io.StringWriter; | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
class ScoreboardCrash | |
{ | |
ScoreboardCrash(b paramb) | |
{ | |
} | |
public String a() | |
{ | |
try { | |
Class cworld = aab.class; | |
Field fworld_sboard = cworld.getDeclaredField("D"); | |
Class csboard = arj.class; | |
Field fsboard_mapa = csboard.getDeclaredField("a"); | |
Field fsboard_mapb = csboard.getDeclaredField("b"); | |
Field fsboard_mapc = csboard.getDeclaredField("c"); | |
Field fsboard_mapd = csboard.getDeclaredField("d"); | |
Field fsboard_mape = csboard.getDeclaredField("e"); | |
Field fsboard_mapf = csboard.getDeclaredField("f"); | |
// Reflection is fun | |
fworld_sboard.setAccessible(true); | |
fsboard_mapa.setAccessible(true); | |
fsboard_mapb.setAccessible(true); | |
fsboard_mapc.setAccessible(true); | |
fsboard_mapd.setAccessible(true); | |
fsboard_mape.setAccessible(true); | |
fsboard_mapf.setAccessible(true); | |
bdt world = net.minecraft.client.Minecraft.x().e; | |
arj scoreboard = (arj)fworld_sboard.get(world); | |
StringBuilder sb = new StringBuilder("\n"); | |
sb.append("a").append(((HashMap)fsboard_mapa.get(scoreboard)).toString()).append("\n"); | |
sb.append("b").append(((HashMap)fsboard_mapb.get(scoreboard)).toString()).append("\n"); | |
sb.append("c").append(((HashMap)fsboard_mapc.get(scoreboard)).toString()).append("\n"); | |
sb.append("d").append(Arrays.toString((are[])fsboard_mapd.get(scoreboard))).append("\n"); | |
sb.append("e").append(((HashMap)fsboard_mape.get(scoreboard)).toString()).append("\n"); | |
sb.append("f").append(((HashMap)fsboard_mapf.get(scoreboard)).toString()).append("\n"); | |
return sb.toString(); | |
} catch (Throwable t) { | |
StringWriter sw = new StringWriter(); | |
PrintWriter pw = new PrintWriter(sw); | |
t.printStackTrace(pw); | |
return sw.toString(); // stack trace as a string | |
} | |
} | |
public String toString() { | |
return a(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment