mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 08:25:07 +00:00
fix particles not showing from 30+ block distances
This commit is contained in:
parent
4a79d90327
commit
a44c3f8dba
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue