WaveFunctionP/KSPInterstellar — pull request #3 by jakkarth (2014-07-27 19:44:24+00:00)
Title: Do not consume megajoules if the refinery process is has no input materi...

...al or room for output material.

When the reactor/generator attached to the refinery is undersized, the processes shouldn't stop, but rather should slow down. There's no sense in burning electricity trying to electrolyse alumina if we don't have any, or if the storage for the aluminum and oxidizer is full. This patch is intended to address this issue by refunding the consumed megajoules if it turns out we can't complete the conversion.

It's untested, as I have no idea how to compile KSP mods. Feedback welcome.