mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-21 01:38:51 +00:00
feat: 解析类型化后的数据
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
1aa10139a5
commit
8d29a90c04
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user