From 21dfa5ce1a1e139c77667698ddc51611e5aed4a8 Mon Sep 17 00:00:00 2001 From: kangarko Date: Tue, 18 Aug 2020 12:59:42 +0200 Subject: [PATCH] Add Short to auto-serialized keys --- src/main/java/org/mineacademy/fo/SerializeUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mineacademy/fo/SerializeUtil.java b/src/main/java/org/mineacademy/fo/SerializeUtil.java index ea077fb97..68538f029 100644 --- a/src/main/java/org/mineacademy/fo/SerializeUtil.java +++ b/src/main/java/org/mineacademy/fo/SerializeUtil.java @@ -122,7 +122,7 @@ else if (obj instanceof Iterable || obj.getClass().isArray() || obj instanceof I } else if (obj instanceof YamlConfig) throw new SerializeFailedException("To save your YamlConfig " + obj.getClass().getSimpleName() + " make it implement ConfigSerializable!"); - else if (obj instanceof Integer || obj instanceof Double || obj instanceof Float || obj instanceof Long + else if (obj instanceof Integer || obj instanceof Double || obj instanceof Float || obj instanceof Long || obj instanceof Short || obj instanceof String || obj instanceof Boolean || obj instanceof Map || obj instanceof ItemStack || obj instanceof MemorySection)