superjoe30/node-minecraft-protocol — pull request #23 by roblabla (2013-01-27 11:53:20+00:00)
Title: Fixes #20 for real this time...

Thought I did fix #20 in last PR, but turns out I actually didn't...

Anyhow, I think the diff explains how this works pretty easily.