Update itemgenerator.c