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) {