You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround, there is always item stack instance comparison. If you have access to the entity, you can check event.getStack() == entity.getItemMainHand() to see if its the main hand item. While .equals() may return true for the item in both hands, the items in each hand are guaranteed to be unique instances.
I didn't find a way to call hand when using this event., want to know why.🙂
The text was updated successfully, but these errors were encountered: