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:
Equip a projectile gadget
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):
Server Version: Paper 1.18.2
GadgetsMenu Version: 4.8.1
Console stack trace if have.
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.
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:
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.