Fix 1.8 compatibility (#339)
Use proper method name ('setLenient' instead of 'setLenienent') in the deserializeLegacy method for 1.8 compatibility.
Dieser Commit ist enthalten in:
Ursprung
ea7900d64f
Commit
6bb169ac01
@ -47,7 +47,7 @@ public class ComponentParser {
|
||||
try {
|
||||
Class<?> readerClass = Class.forName("org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader");
|
||||
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);
|
||||
Method getAdapter = gson.getClass().getMethod("getAdapter", Class.class);
|
||||
Object adapter = getAdapter.invoke(gson, component);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren