Skip to content

Commit

Permalink
Fix an IllegalArgumentException for long-distance particles
Browse files Browse the repository at this point in the history
  • Loading branch information
2008Choco committed Nov 23, 2018
1 parent 770d34b commit 6538638
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void executeExpression(Particle particleType, int particleAmount, double
double x = xExpression.evaluate(), z = zExpression.evaluate();

this.initialLocation.add(x, 0, z);
this.initialLocation.getWorld().spawnParticle(particleType, initialLocation, particleAmount, xOffset, yOffset, zOffset, particleExtra, true);
this.initialLocation.getWorld().spawnParticle(particleType, initialLocation, particleAmount, xOffset, yOffset, zOffset, particleExtra, null, true);
this.initialLocation.subtract(x, 0, z);
}

Expand Down

0 comments on commit 6538638

Please sign in to comment.