Worse Barrels

Worse Barrels

87k Downloads

Can't sneak-click a stack into or out of a barrel if sneak is remapped

GeorgeEbberson opened this issue ยท 1 comments

commented

If sneak is remapped to anything other than LSHIFT, sneak-clicking and sneak-right clicking to add and remove stacks does not work.

To reproduce:
Remap sneak to LCONTROL, then try and LCONTROL+RCLICK to move a stack of items into the barrel.

commented

For now, in the options menu for the mod, you can remap ctrl-leftclick and ctrl-rightclick actions to do something else.

This is why it happens:

if(GuiScreen.isCtrlKeyDown()) {
message = WorseBarrelsConfig.CTRL_RIGHT_CLICK_ACTION.getPacket(pos);
} else if(player.isSneaking()) {
message = WorseBarrelsConfig.SNEAK_RIGHT_CLICK_ACTION.getPacket(pos);
} else {
message = WorseBarrelsConfig.RIGHT_CLICK_ACTION.getPacket(pos);
}

In an update I'll make it check for sneaking first, then ctrl.