From cf9cf7d80c89cb1b4cf15c6a42b4345c784658d4 Mon Sep 17 00:00:00 2001 From: TheLimeGlass Date: Tue, 31 Oct 2023 08:48:24 -0600 Subject: [PATCH] Fix incorrect cast in doubleInstanceofConverter ConverterUtils --- .../syst3ms/skriptparser/types/conversions/ConverterUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/syst3ms/skriptparser/types/conversions/ConverterUtils.java b/src/main/java/io/github/syst3ms/skriptparser/types/conversions/ConverterUtils.java index 0c7462ab..e75e22f4 100644 --- a/src/main/java/io/github/syst3ms/skriptparser/types/conversions/ConverterUtils.java +++ b/src/main/java/io/github/syst3ms/skriptparser/types/conversions/ConverterUtils.java @@ -26,7 +26,8 @@ public static Function> createInstanceof } public static Function> createDoubleInstanceofConverter(ConverterInfo conv, Class to) { - return createDoubleInstanceofConverter(conv.getFrom(), (Function>) conv.getConverter(), to); + Function function = conv.getConverter(); + return createDoubleInstanceofConverter(conv.getFrom(), (Function>) function, to); } public static Function> createDoubleInstanceofConverter(Class from, Function> conv, Class to) {