mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2025-09-01 11:26:56 +00:00
@ -46,7 +46,7 @@ public class BukkitConstructor extends YamlConstructor {
|
|||||||
final String key = raw.get(ConfigurationSerialization.SERIALIZED_TYPE_KEY).toString();
|
final String key = raw.get(ConfigurationSerialization.SERIALIZED_TYPE_KEY).toString();
|
||||||
if (constructor.containsKey(key)) {
|
if (constructor.containsKey(key)) {
|
||||||
try {
|
try {
|
||||||
return constructor.get(key).invoke(null, raw);
|
return constructor.get(key).invoke(null, typed);
|
||||||
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
|
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
|
||||||
throw new YAMLException("Could not deserialize object", ex);
|
throw new YAMLException("Could not deserialize object", ex);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user