Assert checks to private.resume(), allow use in resourcepack

Environment checking moved to the private.resume() method because assert failures were preventing the API from loading when stored in ROM (e.g. when included in a resource pack
Merge pull request #2 from michthom/master

Assert checks to private.resume(), allow use in resourcepack