Skip to content

Commit

Permalink
Fix inspection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moderocky committed Aug 17, 2024
1 parent 1eddf56 commit ab861c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/expressions/ExprResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.ExpressionList;
import ch.njol.skript.lang.ExpressionType;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.skript.lang.SkriptParser.ParseResult;
import ch.njol.skript.lang.function.DynamicFunctionReference;
import ch.njol.skript.registrations.Feature;
import ch.njol.skript.util.LiteralUtils;
Expand Down Expand Up @@ -60,12 +60,12 @@ public class ExprResult extends PropertyExpression<Executable<Event, Object>, Ob
private boolean hasArguments, isPlural;
private DynamicFunctionReference.Input input;

@SuppressWarnings({"unchecked", "null"})
@Override
public boolean init(Expression<?>[] expressions, int matchedPattern, Kleenean isDelayed,
ParseResult result) {
if (!this.getParser().hasExperiment(Feature.SCRIPT_REFLECTION))
return false;
//noinspection unchecked
this.setExpr((Expression<? extends Executable<Event, Object>>) expressions[0]);
this.hasArguments = result.hasTag("arguments");
this.isPlural = result.hasTag("plural");
Expand Down

0 comments on commit ab861c9

Please sign in to comment.