A fix for the Stack Overflow exception I was having.

I'm still unsure what is it caused by, but that's the fix bc suggested, and it works fine for me.
Issue was caused by WorldGen.hitWire being called from multiple threads at once (according to bc, who examined my dump), but I'm unsure what called it exactly and if it was intentional.