Skip to content

Commit

Permalink
Fix some entity effect being buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Apr 11, 2016
1 parent 7371bb2 commit 043b39d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ch/njol/skript/util/VisualEffect.java
Expand Up @@ -295,7 +295,8 @@ else if (expr.getReturnType() == Color.class) {
}

int dPos = 0; // Data index
if (exprs[0].getReturnType() != Number.class) {
Expression<?> expr = exprs[0];
if (expr.getReturnType() != Long.class && expr.getReturnType() != Integer.class && expr.getReturnType() != Number.class) {
dPos = 1;
data = exprs[0].getSingle(null);
}
Expand Down

0 comments on commit 043b39d

Please sign in to comment.