Mattredsox/Electric-Expansion — pull request #46 by calclavia (2012-12-18 09:07:45+00:00)
Title: Fix attempt on Transformer

I edited this on the iPad without testing or doing anything. Please check this and change things yourself! The main error you had for it producing infinite energy was that you forgot to call stopProducing when the producing network is not generating energy! You called it only when the output was not requesting, hence the error.

Also, you should do a check to make sure the input tile is not the output tile. This will prevent errors from happening in a loop wire connection. Simply, if(input != output) do transformation.