Add support for extending solar panels.

This time it's a copy/paste of your code and i spent 10 minutes on it. Hopefully it's a bit less hideous.