def handleProcess(game, queue):
    """
    Handle the genWorld queue and link it back into the main thread
    """
    game.getModInstance('ClientMod').genLock = True
    while True:
        data = queue.get()
        if isinstance(data, list):
            game.world.centrePos = data
        elif data != 'end':
            game.world.setTileMap(data)
        else:
            game.getModInstance('ClientMod').genLock = False
            return
