[BUG] Right click with tool bypasses empty hand requirement
ginsm opened this issue ยท 1 comments
Describe the bug
Right clicking with a tool or weapon (i.e. a sword), as long as your off-hand is empty, causes the grave to be retrieved.
Forgotten Graves Version
v2.0.0-mc1.18
To Reproduce
- Type
/kill - Give yourself a sword or tool
- Right click the grave
Expected behavior
it should expect you to have nothing in your main hand.
Additional context
This issue occurs because it first tries to use the main hand (with the tool/weapon) and then tries it with the off-hand.. which if you don't have anything in your off-hand it will retrieve the grave.
I'm just going to ensure that the onUse is coming from Hand.MAIN_HAND.
Note: An empty hand is required to retrieve graves because of #19 (where you use an Axe a shovel on a grave to restart its aging process).
Resolved in 334777d.
Closing.