fix particles not showing from 30+ block distances

This commit is contained in:
PhanaticD 2018-12-28 23:12:59 -05:00
parent 4a79d90327
commit a44c3f8dba

View file

@ -122,7 +122,7 @@ public enum ParticleEffect {
* @param extra extra data to affect the particle, usually affects speed or does nothing
*/
public void display(Location loc, int amount, double offsetX, double offsetY, double offsetZ, double extra) {
loc.getWorld().spawnParticle(particle, loc, amount, offsetX, offsetY, offsetZ, extra);
loc.getWorld().spawnParticle(particle, loc, amount, offsetX, offsetY, offsetZ, extra, null, true);
}
/**
@ -152,7 +152,7 @@ public enum ParticleEffect {
if (dataClass.isAssignableFrom(Void.class) || data == null || !dataClass.isAssignableFrom(data.getClass())) {
display(loc, amount, offsetX, offsetY, offsetZ, extra);
} else {
loc.getWorld().spawnParticle(particle, loc, amount, offsetX, offsetY, offsetZ, extra, data);
loc.getWorld().spawnParticle(particle, loc, amount, offsetX, offsetY, offsetZ, extra, data, true);
}
}
}