`tweakHandRestockPre` fails when used with `tweakFastRightClick`
James103 opened this issue ยท 1 comments
As of Minecraft 1.18.2, tweakHandRestockPre
may fail and disable itself when it's used along with tweakFastRightClick
and the player is placing blocks / throwing snowballs at a rate greater than 20 Hz. The only way to guarantee that it works correctly is to attempt to place blocks / use items at a rate of once every (your ping + 50 to 100) ms and not be pressing any movement keys during that time.
To reproduce:
/gamemode survival
- Turn on
tweakHandRestock
- Turn on
tweakHandRestockPre
- Turn on
tweakFastRightClick
ortweakFastBlockPlacement
- Obtain a few stacks of any block or snowball.
- Start placing blocks or throwing snowballs.
- At some point,
tweakHandRestockPre
will fail and disable itself until you open and close your inventory. - Open your inventory.
- Notice that a small stack of items is left on your cursor.
- Close your inventory.
This is likely because Tweakeroo is attempting to simulate several inventory operations in a row while you are both moving and placing blocks. Most of the time, the resulting packets are processed correctly, but sometimes, the packets may be processed in an incorrect order (and/or received too fast), causing some of the operations to fail as described above.
Mod list (important mods only):
- Minecraft 1.18.2
- Fabric Loader 0.13.3
- Fabric API 0.47.8
- Malilib 0.12.1
- Tweakeroo 0.13.1
- Lithium 0.7.9