Compact Machines

Compact Machines

68M Downloads

Can't set tunnel to "down" side

Ant95 opened this issue ยท 0 comments

commented

Compact Machines version: 3.0.13
Forge version: 14.23.5.2768

Description of the problem including expected versus actual behavior:
When placing the first tunnel inside a machine I can't get it to connect to "down" side, it directly switches to "up" side.

After debugging I found out it happens since 9696598 (line 81).

Since the right-click event is not handled with the MAIN_HAND, it tries with the OFF_HAND. Nothing is done client-side but two "CPacketPlayerTryUseItemOnBlock" packets (one for each hand) are sent to the server. The first triggers the block activation of the wall, which registers the tunnel and update its blockstate to the tunnel blockstate, which cause the second to trigger the block activation of the tunnel. The tunnel immediatly set its side state to "up".

I will propose you a pull-request to fix it.

Steps to reproduce:
1- Place a tunnel on a wall of an empty machine