Reduce coal fume particles

This commit is contained in:
Graphica 2017-06-28 18:32:19 -04:00 committed by cnr
parent 816f1467aa
commit a9311e7457

View File

@ -1,5 +1,6 @@
package mineplex.core.gadget.gadgets.particle; package mineplex.core.gadget.gadgets.particle;
import mineplex.core.common.util.UtilMath;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -27,7 +28,7 @@ public class ParticleCoalFumes extends ParticleGadget
@Override @Override
public void playParticle(Player player, UpdateEvent event) public void playParticle(Player player, UpdateEvent event)
{ {
if(event.getType() != UpdateType.TICK) return; if(event.getType() != UpdateType.FASTER) return;
float xz = 1; float xz = 1;
int amount = 5; int amount = 5;
@ -39,6 +40,6 @@ public class ParticleCoalFumes extends ParticleGadget
amount = 2; amount = 2;
} }
UtilParticle.playParticleFor(player, type, player.getLocation(), xz, 0, xz, 0, amount, ViewDist.NORMAL); UtilParticle.playParticleFor(player, type, UtilMath.gauss(player.getLocation(), 2, 6, 2), xz, 0, xz, 0, amount, ViewDist.NORMAL);
} }
} }