From 166281c2cc0f57597e203e3311e798cde4bca254 Mon Sep 17 00:00:00 2001 From: TrollyLoki Date: Fri, 6 Oct 2023 15:57:59 -0400 Subject: [PATCH] Fix incorrect cast to double instead of Integer (#613) --- .../java/net/countercraft/movecraft/craft/type/TypeData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/src/main/java/net/countercraft/movecraft/craft/type/TypeData.java b/modules/api/src/main/java/net/countercraft/movecraft/craft/type/TypeData.java index ad811a7f8..873119563 100644 --- a/modules/api/src/main/java/net/countercraft/movecraft/craft/type/TypeData.java +++ b/modules/api/src/main/java/net/countercraft/movecraft/craft/type/TypeData.java @@ -458,7 +458,7 @@ public List getStringListOrEmpty(@NotNull String key) { return new Pair<>(false, Double.valueOf(str)); } else if (input instanceof Integer) { - return new Pair<>(false, (double) input); + return new Pair<>(false, (Integer) input); } else return new Pair<>(false, (double) input);