defeatedcrow / EconomicalMilkTea

Addon for AppleMilkTea2 and MCEconomy2
1 stars 1 forks source link

[1.1c] Yuzu Energy Motor does not output RF #1

Open Belgabor opened 8 years ago

Belgabor commented 8 years ago

I cannot get get the motor to output RF (tried with EXU energy node, Ender IO banks, cables and machines and RFTools machines).

I took a look at the source code but couldn't see the issue. One thing I noticed (although that, as far as I can see, is not the source of the problem), is that you seem to have the effect of paramBoolean in extractEnergy wrong. In the original it is called "simulate" (see https://github.com/CoFH/CoFHLib/blob/master/src/main/java/cofh/api/energy/IEnergyProvider.java#L26). If the parameter is true, it does not actually request the energy and you are not supposed to reduce your buffer. The way I read your code, you have that the other way around.

defeatedcrow commented 8 years ago

Thank you for providing that information. It seems I was dealing reverse the boolean of IEnergyProvider#extractEnergy. I will fix it.