1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-24 02:08:48 +00:00

feat: 解析类型化后的数据

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-10-04 11:03:50 +08:00
parent 1aa10139a5
commit 8d29a90c04

View File

@ -46,7 +46,7 @@ public class BukkitConstructor extends YamlConstructor {
final String key = raw.get(ConfigurationSerialization.SERIALIZED_TYPE_KEY).toString();
if (constructor.containsKey(key)) {
try {
return constructor.get(key).invoke(null, raw);
return constructor.get(key).invoke(null, typed);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
throw new YAMLException("Could not deserialize object", ex);
}