Archiviert
13
0

Merge remote-tracking branch 'origin/master'

Dieser Commit ist enthalten in:
Dan Mulloy 2017-05-29 22:14:28 -04:00
Commit 7f5ea6e493

Datei anzeigen

@ -47,7 +47,7 @@ public class ComponentParser {
try { try {
Class<?> readerClass = Class.forName("org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader"); Class<?> readerClass = Class.forName("org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader");
Object reader = readerClass.getConstructor(Reader.class).newInstance(str); Object reader = readerClass.getConstructor(Reader.class).newInstance(str);
Method setLenient = readerClass.getMethod("setLenienent", boolean.class); Method setLenient = readerClass.getMethod("setLenient", boolean.class);
setLenient.invoke(reader, true); setLenient.invoke(reader, true);
Method getAdapter = gson.getClass().getMethod("getAdapter", Class.class); Method getAdapter = gson.getClass().getMethod("getAdapter", Class.class);
Object adapter = getAdapter.invoke(gson, component); Object adapter = getAdapter.invoke(gson, component);