mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Reduce the amount of particles generated by the changeling feed ability
This commit is contained in:
parent
1222bd6831
commit
0bde55a0fb
1 changed files with 3 additions and 1 deletions
|
@ -159,6 +159,8 @@ public class ChangelingFeedAbility implements Ability<Hit> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void postApply(Pony player, AbilitySlot slot) {
|
public void postApply(Pony player, AbilitySlot slot) {
|
||||||
player.spawnParticles(ParticleTypes.HEART, 1);
|
if (player.getWorld().random.nextInt(10) == 0) {
|
||||||
|
player.spawnParticles(ParticleTypes.HEART, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue