`xnet.transferEnergy` does not work with RFTools Powercells
SwadicalRag opened this issue ยท 5 comments
PowerCellTileEntity::canExtract() always returns false. This seems like an RFTools issue.
As a side note, XNet's own code does not check IEnergyStorage::canExtract and IEnergyStorage::canReceive
The code you linked references some NullHandler. That's the one being used if no EnumFacing was given. But yeah, the SidedHandler a few lines above also has canExtract set to false without any conditions.
This looks like an RFTools issue and there is not much I can do about it. I guess it might be made to work through tesla or redstone flux, but nah, I don't want either of those complexities added to this mod.
@McJty, can you shine some light on this? Is there a specific reason it actively pushes out energy, but does not allow pulling from it?
@thraaawn I've made a PR ( #8 ) that plays nice with how the powercell actively pushes out energy. It works by using the connector's built-in energy buffer (a la XNet's internal way of transferring power). (And as a side effect of mirroring XNet's power logic, redstone flux API support was added)
I think this is the better way to move forward, as other mods may also rely on blocks which actively push out energy.