if (!powered)
powered = container.worldObj.isBlockIndirectlyGettingPowered(container.xCoord, container.yCoord, container.zCoord);
if (lastPowered != powered) {
for (TileGenericPipe pipe : neighbours) {
pipe.scheduleNeighborChange();
pipe.updateEntity();
}
}
}