Update generator.lua

Added BrandonReese's Protection system