ControlPack icon indicating copy to clipboard operation
ControlPack copied to clipboard

Causes hotbar to switch when opening windows/chat

Open koolkaracter opened this issue 7 years ago • 2 comments

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.

koolkaracter avatar Jan 20 '18 04:01 koolkaracter

Same problem here. This one issue literally makes this plugin unusable for me, a shame really.

NanoAi avatar Jul 19 '18 23:07 NanoAi

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

i0xHeX avatar Sep 08 '18 07:09 i0xHeX