You say having multiple worlds is not likely, but look at Minecraft and the Nether. I think thing is significantly more likely than you think. Also, I forgot client has a world object. Must have had something to do with it being named client.w. I didn't notice it while reading through other code to figure out how to reference the world. (I didn't really look that hard either. I just saw global world. You should have added a comment indicating why it was global, like you just have above.)