From c0065ae696d1f0688ad5999aaab02e7ded6e22ad Mon Sep 17 00:00:00 2001 From: LCastr0 Date: Wed, 1 Feb 2017 11:33:17 -0200 Subject: [PATCH] Blow a kiss blowing kiss to yourself --- .../mineplex/core/gadget/gadgets/taunts/BlowAKissTaunt.java | 2 +- .../src/mineplex/core/particleeffects/BlowAKissEffect.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/taunts/BlowAKissTaunt.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/taunts/BlowAKissTaunt.java index c81a367a3..a175bc4c9 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/taunts/BlowAKissTaunt.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/taunts/BlowAKissTaunt.java @@ -34,7 +34,7 @@ public class BlowAKissTaunt extends TauntGadget if (!Recharge.Instance.use(player, getName(), COOLDOWN, true, false, "Cosmetics")) return; - HashSet ignore = new HashSet(); + HashSet ignore = new HashSet<>(); ignore.add(Material.AIR); Location loc = player.getTargetBlock(ignore, 64).getLocation().add(0.5, 0.5, 0.5); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/particleeffects/BlowAKissEffect.java b/Plugins/Mineplex.Core/src/mineplex/core/particleeffects/BlowAKissEffect.java index 147a6ead7..9ebeac820 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/particleeffects/BlowAKissEffect.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/particleeffects/BlowAKissEffect.java @@ -74,6 +74,9 @@ public class BlowAKissEffect extends Effect { for (Player player : UtilServer.getPlayers()) { + if (player.equals(_player)) + continue; + if (player.getLocation().distanceSquared(_fixedLoc) <= 2.25) { UtilParticle.PlayParticle(UtilParticle.ParticleType.HEART, player.getLocation(), 0.25f, 0.25f, 0.25f, 0.5f, 7, UtilParticle.ViewDist.NORMAL);