Rolling Machine tries to charge from its 3rd input slot
coderbot16 opened this issue ยท 2 comments
While testing my energy support patches I discovered that the Rolling Machine was not discharging batteries. While this initially spooked me, since I thought that I had broken something, I tested other machines and they seemed to work fine. Inspection of the source reveals that the GUI has the energy slot as index 10, but the charge code has the energy slot as index 2. While index 2 in many machines is the energy slot, the rolling machine is a special case since 0-8 are input slots.
Relevant source code locations:
- Call to TilePowerAcceptor#charge
- Charge slot assignment in ContainerBuilder