Closed sctjkc01 closed 1 year ago
Thanks for reporting!
Forgive me if I'm overstepping my bounds. Looking at the relevant code, it seems as though the issue would be readily resolved if the line indicated was changed from ((Button) this.children().get(0)).onPress();
to ((Button) this.children().get(1)).onPress();
.
From what I can tell as a novice to this codebase, the interface has two children: the crafting plan itself, and the button to confirm, in that order. Which means this.children().get(0)
would get the crafting plan rather than the intended button.
Looks like that could indeed be the problem! You're welcome to submit a PR if that fixes the problem.
Unfortunately, I am not set up to do any Minecraft modding, and I am not so confident in the fix that I would submit even a one-character PR without being able to test that it is correct. I can, however, be patient as I await a fix from someone more capable to perform confirmation that the above fix is indeed enough.
Issue type:
Short description:
Pressing enter to confirm the crafting plan causes the game to crash due to a type casting failure here.
Steps to reproduce the problem:
Expected behaviour:
The requested crafting begins.
Versions:
Additionally:
Log file:
The full log
The callstack: