Fixed possible crash
It could crash if MinAmount - MaxAmount was 0 because it would execute (Number % 0)
Merge pull request #1537 from mc-server/GenerationCrash

Fixed possible crash