diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/MorphLoveDoctor.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/MorphLoveDoctor.java index 9f00c7fca..4caccf0da 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/MorphLoveDoctor.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/morph/MorphLoveDoctor.java @@ -7,8 +7,7 @@ import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; -import org.bukkit.event.block.Action; -import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.event.player.PlayerToggleSneakEvent; import com.mojang.authlib.GameProfile; @@ -58,14 +57,11 @@ public class MorphLoveDoctor extends MorphGadget } @EventHandler - public void onRightClick(PlayerInteractEvent event) + public void onSneak(PlayerToggleSneakEvent event) { if (!isActive(event.getPlayer())) return; - if (event.getAction() != Action.RIGHT_CLICK_AIR) - return; - Player player = event.getPlayer(); if (!Recharge.Instance.use(player, "Love Doctor Laser", 5000, true, false, "Cosmetics"))