From 8d29a90c04c384623da32ce58add81e34d72f624 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 4 Oct 2016 11:03:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E6=9E=90=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=8C=96=E5=90=8E=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .../java/pw/yumc/YumCore/config/yaml/BukkitConstructor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pw/yumc/YumCore/config/yaml/BukkitConstructor.java b/src/main/java/pw/yumc/YumCore/config/yaml/BukkitConstructor.java index 58c2202..e7495fb 100644 --- a/src/main/java/pw/yumc/YumCore/config/yaml/BukkitConstructor.java +++ b/src/main/java/pw/yumc/YumCore/config/yaml/BukkitConstructor.java @@ -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); }