From 4f0110b94225c18dcd5c909994b8e6d8ae4017c0 Mon Sep 17 00:00:00 2001 From: LCastr0 Date: Mon, 27 Mar 2017 20:19:54 -0300 Subject: [PATCH] Updated offset of the wings --- .../core/gadget/gadgets/particle/ParticleWingsBee.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/particle/ParticleWingsBee.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/particle/ParticleWingsBee.java index dbda72fa8..7d25d438e 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/particle/ParticleWingsBee.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/particle/ParticleWingsBee.java @@ -7,7 +7,6 @@ import java.time.YearMonth; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.Player; -import org.bukkit.potion.PotionType; import org.bukkit.util.Vector; import mineplex.core.common.shape.ShapeWings; @@ -17,7 +16,6 @@ import mineplex.core.common.util.UtilParticle; import mineplex.core.common.util.UtilText; import mineplex.core.gadget.GadgetManager; import mineplex.core.gadget.types.ParticleGadget; -import mineplex.core.itemstack.ItemStackFactory; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; @@ -32,13 +30,12 @@ public class ParticleWingsBee extends ParticleGadget super(manager, "Bumblebee's Wings", UtilText.splitLineToArray(C.cGray + "Float like a butterfly and sting like a bee with these new spring wings!", LineFormat.LORE), -14, Material.WOOL, (byte) 4, YearMonth.of(2017, Month.APRIL)); - setDisplayItem(ItemStackFactory.Instance.createCustomPotion(PotionType.INSTANT_HEAL)); } @Override public void playParticle(Player player, UpdateEvent event) { - Location loc = player.getLocation().add(0, 1.2, 0).add(player.getLocation().getDirection().multiply(-0.2)); + Location loc = player.getLocation().add(0, 1, 0).add(player.getLocation().getDirection().multiply(-0.4)); if (_manager.isMoving(player)) { if (event.getType() == UpdateType.TICK)