I'm coding my client for 1.20. I'm asking help because this wasn't an issue in 1.8. Here is a video clip of the issue
basically when enabling scaffold i'm sending a slot change packet to the slot where blocks are and when disabling i switch back to my current slot
for a note, i cancel all slot change packets that are not sent by the scaffold, meaning myself changing slots won't affect the slot i have server side
you can see that it works, but if i'm not holding a block client side then it does all sorts of weird things like not playing the block place sound, rollbacking and placing blocks wrongly which doesn't make any sense as i'm holding a block server side no matter what? even more nonsense is that in singleplayer it works absolutely fine.
i'm placing blocks using mc.interactionManager.interactBlock which i assume is the equivalent of mc.playerController.onRightClick ?
basically when enabling scaffold i'm sending a slot change packet to the slot where blocks are and when disabling i switch back to my current slot
for a note, i cancel all slot change packets that are not sent by the scaffold, meaning myself changing slots won't affect the slot i have server side
you can see that it works, but if i'm not holding a block client side then it does all sorts of weird things like not playing the block place sound, rollbacking and placing blocks wrongly which doesn't make any sense as i'm holding a block server side no matter what? even more nonsense is that in singleplayer it works absolutely fine.
i'm placing blocks using mc.interactionManager.interactBlock which i assume is the equivalent of mc.playerController.onRightClick ?