GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
254 stars 176 forks source link

Fix Negative EUt in TOP #2666

Open ghzdude opened 4 days ago

ghzdude commented 4 days ago

What

fixes eut being negative sometimes in recipe logic, making TOP give the wrong value

Implementation Details

add method getEnergyContainer() to ARL and simplify extending classes eut should ONLY be negative in drawEnergy() in ARL i feel like boilers and steam recipe logic could use an IEnergyContainer to wrap their logic and further simplify them

Outcome

TOP is correct