cabaletta / cabaletta/baritone
Right click input override doesn't match vanilla behavior
- Dominant language
- Java
- Stars
- 9.2k
- Forks
- 2.1k
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 3
Description
When holding a torch in the off hand, a solid block in the main hand, and looking down at the block we are standing on, using `getInputOverrideHandler().setInputForceState` to right click will result in a torch being placed. The correct behavior that is observed by right clicking manually is nothing happens. Baritone handles right clicking itself in [BlockPlaceHelper](https://github.com/cabaletta/baritone/blob/1.19.4/src/main/java/baritone/utils/BlockPlaceHelper.java) and the difference between baritone's code and minecraft's is minecraft will not check the off hand if the call to `useItemOn`(`processRightClickBlock` in baritone api) returns FAIL and baritone only exits the loop if that call returns SUCCESS.
## Some information
Operating system: NixOS btw
Java version: 19
Minecraft version: 1.20.1
Baritone version: 1.10.1
## Final checklist
- [ ] I know how to properly use check boxes
- [x] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- [x] I have included logs, exceptions and / or steps to reproduce the issue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.