From de310d24ab2041683fd69a129bb06c14960f5d41 Mon Sep 17 00:00:00 2001 From: _tud <98935832+UnderscoreTud@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:04:16 +0300 Subject: [PATCH] Rename variable for better readability --- .../reflect/java/elements/structures/StructImport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/skriptlang/reflect/java/elements/structures/StructImport.java b/src/main/java/org/skriptlang/reflect/java/elements/structures/StructImport.java index 11f7116..cde7c91 100644 --- a/src/main/java/org/skriptlang/reflect/java/elements/structures/StructImport.java +++ b/src/main/java/org/skriptlang/reflect/java/elements/structures/StructImport.java @@ -46,7 +46,7 @@ public class StructImport extends Structure { // TODO try replacing ImportHandler with JavaType's literal parsing Skript.registerExpression(ImportHandler.class, JavaType.class, ExpressionType.SIMPLE); thisInfo = StreamSupport.stream(Spliterators.spliteratorUnknownSize(Skript.getExpressions(), Spliterator.ORDERED), false) - .filter(i -> i.c == ImportHandler.class) + .filter(expressionInfo -> ImportHandler.class.equals(expressionInfo.getElementClass())) .findFirst().orElseGet(() -> { Skript.warning("Could not find custom import class. Custom imports will not work."); return null;