Skip to content

Commit

Permalink
Rotating machines break adjacent enets (#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple authored Jan 14, 2025
1 parent 9ae3250 commit 857fa4e
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1166,13 +1166,14 @@ public void generatePowerNodes() {
for (final ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
if (outputsEnergyTo(side, false) || inputEnergyFrom(side, false)) {
final IGregTechTileEntity TE = getIGregTechTileEntityAtSide(side);
if (TE instanceof BaseMetaPipeEntity) {
final Node node = ((BaseMetaPipeEntity) TE).getNode();
if (TE instanceof BaseMetaPipeEntity pipe
&& (pipe.getConnections() & side.getOpposite().flag) != 0) {
final Node node = pipe.getNode();
if (node == null) {
new GenerateNodeMapPower((BaseMetaPipeEntity) TE);
new GenerateNodeMapPower(pipe);
} else if (node.mCreationTime != time) {
GenerateNodeMap.clearNodeMap(node, -1);
new GenerateNodeMapPower((BaseMetaPipeEntity) TE);
new GenerateNodeMapPower(pipe);
}
}
}
Expand Down

0 comments on commit 857fa4e

Please sign in to comment.