fixed wording. Sorry, I'm tired and s t r e s s e d

This commit is contained in:
Pierce 2019-05-04 22:03:53 -04:00
parent 5748b386e3
commit 50cc5678fc
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
const event = new (require('events')).EventEmitter();
event.on('newListener', event => {
if(event === 'start') {
process.emitWarning('The \'start\' event is deprecated. Use \'data\' instead.', 'DeprecationWarning');
process.emitWarning('The \'start\' event has been removed. Use \'data\' instead.', 'DeprecationWarning');
}
});
module.exports = event;

View file

@ -32,7 +32,7 @@ module.exports = async function (options) {
let forge = null;
let custom = null;
if(options.forge) {
if(options.forge.path) process.emitWarning('\'options.forge.path\' will be deprecated. Use \'options.forge\' instead');
if(options.forge.path) process.emitWarning('\'options.forge.path\' is deprecated and will be removed. Use \'options.forge\' instead');
event.emit('debug', '[MCLC]: Detected Forge in options, getting dependencies');
forge = await handler.getForgeDependencies(options.root, versionFile, options.forge.path || options.forge);
}