Hello IC2 devs! I've been having an error on my server and the mod owner advised me to give you guys a shout. Basically, I have a "hydro-flower" set up using an IC2 MFE, a BC3 Pump, an Energy Link, and Water Strainers. Whenever the MFE gets full, I get this error:
[WARNING] [IC2] API ERROR: atomicstryker.powerconverters.common.TileEntityEnergyLink@2b99e8cd didn't implement demandsEnergy() properly, no
energy from injectEnergy accepted although demandsEnergy() returned true.
I talked to AtomicStryker and he advised:
@Overridepublic boolean demandsEnergy()
{
return storedEnergy < maxStoredEnergy;
}
@Override
public int injectEnergy(Direction directionFrom, int amount)
{
int amountToAdd = Math.min(amount, maxStoredEnergy - storedEnergy);
storedEnergy += amountToAdd;
return amount - amountToAdd;
}
Display More
"Looks good to me. You probably have some sort of fringe case where the water strainers continue to try and inject energy AFTER its full"
"You could ask in the IC2 forum or IRC chat, one of the devs, what could be causing this issue and link them to the source.
http://code.google.c...dGenerator.java"
So, here I am, figured I give it a shot! Thanks!
EDIT: Forgot to list Version Numbers...
Minecraft Version 1.4.5
MCForge Version 6.4.0.396
BC3 Version 3.2.0
IC2 Version 1.109.113
Power Converters Version 1.4.4