Skip to content

Commit

Permalink
Add Short to auto-serialized keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kangarko committed Aug 18, 2020
1 parent 0c7bd75 commit 21dfa5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/mineacademy/fo/SerializeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21dfa5c

Please sign in to comment.