Applied-Energistics-2 icon indicating copy to clipboard operation
Applied-Energistics-2 copied to clipboard

Refactor `AEBaseBlockItem.tryPlace()` to use existing helpers by forge/vanilla

Open yueh opened this issue 3 years ago • 0 comments

Currently we have our own redundant implementation for it, which can break in a few edge cases as vanilla will mutate the current BlockItemUseContext while trying to place the actual block.

An easy solution should it still exist in 1.17 would be to store the tile entity data into the BlockEntityTag NBT tag when being broken. This would cause it to automatically restore it once the BlockItem is placed again.

This might need an API break for the memory card

yueh avatar Jun 14 '21 12:06 yueh