Skip to content

Commit

Permalink
Fix incorrect error add awdawdawd to {_x} (and fix error not showin…
Browse files Browse the repository at this point in the history
…g caused by SkriptLang#4104)
  • Loading branch information
TPGamesNL committed Aug 1, 2021
1 parent 4c4920a commit 065df7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ch/njol/skript/effects/EffChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ public boolean init(final Expression<?>[] exprs, final int matchedPattern, final
return false;
}
log.clear();
log.stop();
final Class<?>[] r = new Class[rs.length];
for (int i = 0; i < rs.length; i++)
r[i] = rs[i].isArray() ? rs[i].getComponentType() : rs[i];
if (rs.length == 1 && rs[0] == Object.class)
if (r.length == 1 && r[0] == Object.class)
Skript.error("Can't understand this expression: " + changer, ErrorQuality.NOT_AN_EXPRESSION);
else if (mode == ChangeMode.SET)
Skript.error(what + " can't be set to " + changer + " because the latter is " + SkriptParser.notOfType(r), ErrorQuality.SEMANTIC_ERROR);
Expand Down

0 comments on commit 065df7d

Please sign in to comment.