Deathmax/TerrariaAPI-Server — pull request #29 by simon311 (2013-10-28 17:13:17+00:00)
Title: 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.