Skip to content

Commit

Permalink
Replace deprecated Converters usage with new Converters class usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TPGamesNL committed Jul 18, 2023
1 parent 0abbe26 commit 3c668ba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import ch.njol.skript.lang.util.SimpleExpression;
import ch.njol.skript.lang.util.SimpleLiteral;
import ch.njol.skript.registrations.Classes;
import ch.njol.skript.registrations.Converters;
import ch.njol.skript.util.Utils;
import ch.njol.util.Checker;
import ch.njol.util.Kleenean;
Expand All @@ -19,6 +18,7 @@
import com.btk5h.skriptmirror.util.SkriptReflection;
import com.btk5h.skriptmirror.util.SkriptUtil;
import org.bukkit.event.Event;
import org.skriptlang.skript.lang.converter.Converters;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -101,7 +101,7 @@ private T[] getByStandard(Event e, Trigger getter) {
return JavaUtil.newArray(superType, 0);
}

return Converters.convertArray(expressionEvent.getOutput(), types, superType);
return Converters.convert(expressionEvent.getOutput(), types, superType);
}

private T[] getByProperty(Event e, Trigger getter) {
Expand Down Expand Up @@ -131,7 +131,7 @@ private T[] getByProperty(Event e, Trigger getter) {
return JavaUtil.newArray(superType, 0);
}

T[] converted = Converters.convertArray(exprOutput, superType);
T[] converted = Converters.convert(exprOutput, superType);
output.addAll(Arrays.asList(converted));
}

Expand Down

0 comments on commit 3c668ba

Please sign in to comment.