Merge branch 'development' into 'master'

Fix for particle error.

See merge request Songoda/epicanchors!7
This commit is contained in:
Brianna O'Keefe 2019-05-03 06:51:00 +00:00
commit 88a274a61b
1 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,12 @@ public class AnchorHandler {
xx = (float) (0 + (Math.random() * .75));
yy = (float) (0 + (Math.random() * 1));
zz = (float) (0 + (Math.random() * .75));
location1.getWorld().spawnParticle(Particle.REDSTONE, location1, 5, xx, yy, zz, 1);
if (!instance.isServerVersionAtLeast(ServerVersion.V1_13))
location1.getWorld().spawnParticle(Particle.REDSTONE, location1, 5, xx, yy, zz, 1);
else
location1.getWorld().spawnParticle(Particle.REDSTONE, location1, 5, xx, yy, zz, 1, new Particle.DustOptions(Color.WHITE, 1F));
}
}