[1.18] Fix block duplication due to separate Fabric BlockPlace and BlockRightClick events
Fixes https://github.com/FTBTeam/FTB-Mods-Issues/issues/315.
Key changes:
- Adds new protection, block_edit_and_interact, that is used on Fabric platforms instead of block_edit and block_interact, since we cannot differentiate block placement and block interact in Fabric Architectury.
- Adds platform-dependent protection selection for events.
Tested in fabric dev environment on with server and two clients.
Hmm, if possible, I'd obviously like to see this properly resolved on the Architectury / Fabric side so we don't have to use more platform stuff than strictly necessary
@MaxNeedsSnacks can you confirm if you plan on fixing this issue in Arch any time soon or should I pull this in until it's resolved your end?
@zach2039 if you're still interested in getting this merged, could you please rebase it on the latest 1.18/dev branch ?
Given the lack of response, I'm inclined to extract the code from this and manually patch it into Chunks. Needs doing since it does lead to a dupe on Fabric at the moment. If/when Architectury gets updated to better separate the concept of use and place, we can switch to that.