MightyPirates / OpenComponents

This mod is an addon for OpenComputers that adds a bunch of drivers.
13 stars 9 forks source link

IC2 getReactorEnergyOutput shows exactly 1/5 amount shown in reactor GUI. #19

Closed WazWaz closed 10 years ago

WazWaz commented 10 years ago

With IC2 experimental, MC 1.7.2, OpenComponents-MC1.7.2-0.2.0.9-universal.jar

My reactor shows 160EU/t in the reactor GUI, but getReactorEnergyOutput returns 32.

The IC2 IReactor interface docs say "Energy output, not multiplied by the base EU/t value".

A solution may be to add getReactorEUOutput that multiplies by IC2Reactor.getEUOutput, or to just add that to the API to allow users to do it.

fnuecke commented 10 years ago

Hmm, I suppose exposing the method allows for the most flexibility and won't break existing stuff that has already adjusted to this. Will add a method for it to the reactor driver.