|
9 | 9 | import ch.njol.skript.lang.util.SimpleExpression; |
10 | 10 | import ch.njol.skript.lang.util.SimpleLiteral; |
11 | 11 | import ch.njol.skript.registrations.Classes; |
12 | | -import ch.njol.skript.registrations.Converters; |
13 | 12 | import ch.njol.skript.util.Utils; |
14 | 13 | import ch.njol.util.Checker; |
15 | 14 | import ch.njol.util.Kleenean; |
|
19 | 18 | import com.btk5h.skriptmirror.util.SkriptReflection; |
20 | 19 | import com.btk5h.skriptmirror.util.SkriptUtil; |
21 | 20 | import org.bukkit.event.Event; |
| 21 | +import org.skriptlang.skript.lang.converter.Converters; |
22 | 22 |
|
23 | 23 | import java.util.ArrayList; |
24 | 24 | import java.util.Arrays; |
@@ -101,7 +101,7 @@ private T[] getByStandard(Event e, Trigger getter) { |
101 | 101 | return JavaUtil.newArray(superType, 0); |
102 | 102 | } |
103 | 103 |
|
104 | | - return Converters.convertArray(expressionEvent.getOutput(), types, superType); |
| 104 | + return Converters.convert(expressionEvent.getOutput(), types, superType); |
105 | 105 | } |
106 | 106 |
|
107 | 107 | private T[] getByProperty(Event e, Trigger getter) { |
@@ -131,7 +131,7 @@ private T[] getByProperty(Event e, Trigger getter) { |
131 | 131 | return JavaUtil.newArray(superType, 0); |
132 | 132 | } |
133 | 133 |
|
134 | | - T[] converted = Converters.convertArray(exprOutput, superType); |
| 134 | + T[] converted = Converters.convert(exprOutput, superType); |
135 | 135 | output.addAll(Arrays.asList(converted)); |
136 | 136 | } |
137 | 137 |
|
|
0 commit comments