Closed unpairedbracket closed 11 years ago
My plan was to simply implement IElectrical in TileEntityUniversalCable, this would be a tad easier than completely implementing the electricity network.
I'll assume you probably know UE better than me, given you wrote a lot of it, but I can't resist asking: will that work? It looks to me like TileEntityElectrical.produceUE() works out where to put its power using ElectricityHelper.getNetworkFromTileEntity() then transfers it using IElectricityNetwork.produce(). I'm guessing there must be some other way of doing it?
It WOULD work, but you have just reminded me that this would be slightly less user-friendly than if we actually implemented IElectricityNetwork. Go ahead, I'm sure it will turn out well.
Argh, method names conflicting. I'll see if I can make it work by changing some names.
Thanks! Closed :)
Found with AS reactor turbines. Probably exists in other places as well.
I think I know how to fix this (make TileEntityUniversalCable implement INetworkProvider and EnergyNetwork implement IElectricityNetwork) but I'll wait for @aidancbrady to finish modularising before I do anything.