Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projectile Gadgets on right click firing twice #954

Open
MorphicDream opened this issue May 1, 2023 · 0 comments
Open

Projectile Gadgets on right click firing twice #954

MorphicDream opened this issue May 1, 2023 · 0 comments

Comments

@MorphicDream
Copy link

MorphicDream commented May 1, 2023

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):

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant