Industrial Wires

Industrial Wires

10M Downloads

Rotational to kinetic energy dupe bug

tyra314 opened this issue ยท 3 comments

commented

When I'm connecting a rotational-to-kinetic converter to an IC2 kinetic generator, I'm getting 37,5 EU/t even without inputting anything into the converter.

Example setup

I'm using:

  • Minecraft: 1.12.2
  • Forge: 14.23.1.2582
  • Industrial Wires: 1.6-23
  • IE: 0.12-76
  • IC2: 2.8.35-ex112
commented

This is probably an IC2 bug, unless the IKineticSource interface was changed between 2.8.27 (doc version I have here) and 2.8.35 (build I used for testing). The return value of requestkineticenergy seems to be ignored (it is called though), the kinetic generator seems to just use maxrequestkineticenergyTick. The documentation (on build 27) explicitely states that this method should return the theoretical bandwidth, not the available amount. To me that means returning e.g. 1000 in maxrequest... and returning 0 in request... should not produce any energy. @sfPlayer1

commented

I talked to the IC2 people on IRC, seems like the documentation just did not match the implementation. I'll release a new build soon.

commented

Works for me now. Thank you.