Causes hotbar to switch when opening windows/chat
This mod constantly changes what I have as my active hotbar item when I open chest, or inventory, or press t or / to type. Anything that opens a menu causes it to swtich what I have active. usually will be the same hotbar postion until I relog, then it switches at random. Not sure whats going on there.
Same problem here. This one issue literally makes this plugin unusable for me, a shame really.
I checked and corrected the issue, the problem is every time you open / close inventory, or pause / resume game - ControlPackMain#tickInGame method executed, it has check of swapBack, which related to some features like place torch (moves hotbar to torch and then writes last position to swap back), and default swap back slot is 0, so every time it swaps back to 0. Im so lazy to build it, I just corrected some bytecode in that class, removed swapping back. I think features using it (like place torch) will not work correct, but everything else is nice. Use if you want, no more swap backs! :) mod-cp1.12.2-5.94.3-mc1.12.2.zip