Reduce coal fume particles
This commit is contained in:
parent
816f1467aa
commit
a9311e7457
@ -1,5 +1,6 @@
|
||||
package mineplex.core.gadget.gadgets.particle;
|
||||
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@ -27,7 +28,7 @@ public class ParticleCoalFumes extends ParticleGadget
|
||||
@Override
|
||||
public void playParticle(Player player, UpdateEvent event)
|
||||
{
|
||||
if(event.getType() != UpdateType.TICK) return;
|
||||
if(event.getType() != UpdateType.FASTER) return;
|
||||
|
||||
float xz = 1;
|
||||
int amount = 5;
|
||||
@ -39,6 +40,6 @@ public class ParticleCoalFumes extends ParticleGadget
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user