LibMultiPart icon indicating copy to clipboard operation
LibMultiPart copied to clipboard

`REMOVED` Event Should Be Fired For Only BlockState Removals

Open Kneelawk opened this issue 3 years ago • 0 comments

The Issue

Currently the REMOVED event is fired for all BlockState changes, not just when the MultipartBlock is removed. This means that updating a part container's properties from a part's onAdded method will result in it receiving the REMOVED event immediately.

Potential Solution

A potential solution would be to check that the new state is not a multipart block in MultipartBlock.onStateReplaced.

Kneelawk avatar Nov 05 '22 00:11 Kneelawk