yapzhenyie / GadgetsMenu

Feature-rich cosmetics plugin that provide players with the most powerful features.
http://bit.ly/GadgetsMenu
65 stars 24 forks source link

Projectile Gadgets on right click firing twice #954

Open MorphicDream opened 1 year ago

MorphicDream commented 1 year ago

Describe the bug When using a projectile gadget and right-clicking on a block the gadget attempts to fire twice. This is shown by the gadget firing and then the cooldown message happening. If you click while the cooldown is active it will show you two cooldown times.

To Reproduce Steps to reproduce the behavior:

  1. Equip a projectile gadget
  2. Right-click on a block

Expected behavior The gadget should fire once and not show the cooldown unless I click again. Also, there should be only one cooldown message per right-click.

Further Information (please complete the following information):

Additional Information I think it's just a case of checking which hand is being used since the PlayerInteractEvent is called twice when right-clicking, one for each hand.