[IC2 API] injectEnergyUnits() ignores the return value.

  • Basically, title says everything.
    IC2 API's javadoc says that this function should return "Energy not consumed (leftover)".
    I'm not sure if that's bug or feature.
    Object lesson:


    The results are that 512 EU/t freely enter the device, however ideally only 12 should be permitted to do so.

  • i found that adding a overflow buffer, then refilling the internal buffer from that eliminate that problem.
    When the overflow buffer is empty you request more power






    I know this is a old post, but it may help others that have the same issue, delete it if unwanted :thumbup:

    Edited once, last by zyberwax: forgot to add the demandedEnergyUnits :) ().