Fixed particle error.

This commit is contained in:
Brianna 2019-05-03 02:49:26 -04:00
parent 85d0d8009b
commit 1f6a27a8d0

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));
}
}