altoclef
altoclef copied to clipboard
Bot gets stuck when it is holding an item and inventory is full
Steps to Reproduce (as best as you can)
Use latest release, and it will get stuck. If you open your inventory, it is holding something while its inventory is full, which causes it to get stuck.
Expected Behavior
Throw out unneeded items or throw out item that it is holding
Actual Behavior (What lead to the bot getting permanently stuck)
Does not throw out items, causing the bot to be stuck.
Crashlogs and Screenshots (if applicable)
Other mods (if applicable)
Discord username (if you want updates)
[]me24345#7751
Developer Notes (leave this blank)
Difficulty: Unkown Estimated Time Required: ?
We don't know exactly how to replicate this issue yet so a score cannot be evaluated.
Sorry to get to this so late.
Do you know how to replicate this for sure everytime? I need to know the exact cause. run @gamer
isn't really a cause since we don't know if that for sure will cause it.
Something liike "start with X in your inventory, and then do Y and then the bug will happen". Something I can replicate in just a few minutes.
If you can find out the reproducible steps, I can solve this for you.
To replicate this in a few minutes, fill your inventory up with everything you would acquire from running the @gamer
command. Eventually it will get stuck holding items (that it should drop) and cannot move on to the next chained event.
https://github.com/gaucho-matrero/altoclef/issues/300
The issue was caused by player interaction task chain incorrectly allowing a cursor slot to be clicked. A check was added to prevent this behavior. A potential refactor would include re-working the way slots work, but this is great for now.