Big Reactors

Big Reactors

11M Downloads

Reactor Power Tap not block updating kinesis pipes

painquin opened this issue ยท 1 comments

commented

When the reactor assembles, Buildcraft kinesis pipes do not receive a block update, leaving them disconnected. This is primarily an issue when loading the world, as they become disconnected and must either be replaced or receive a block update to reconnect to the reactor. However, it also happens if you are making changes to the reactor.

2014-12-02_14 27 40

2014-12-02_14 27 58

Using Dark Trilogy, TE's energy conduits are not available. Current workaround is to use an energy cell directly adjacent the reactor power tap. A better solution would be for reactor components which attach to external cables, pipes, tubes, etc to emit a block update any time their connectability changes.

commented

This is a problem with Buildcraft. Buildcraft blocks should be listening for tile-entity updates via the onNeighborChange event, as well as block updates.

Firing a block update (onNeighborBlockChange) is meant for when the actual ID/metadata of the block changes. This causes all six blocks around the power tap to receive the update event. Tile-entity updates via onNeighborChange can be targeted just to the interested neighbors.

An example of an onNeighborChange handler is here:

https://github.com/erogenousbeef/BigReactors/blob/master/src/main/java/erogenousbeef/bigreactors/common/multiblock/block/BlockReactorPart.java#L218