add try catch for the modpe commands to avoid crashes

This commit is contained in:
Romain Beaumont 2015-10-10 19:07:00 +02:00
parent 316ed6b49b
commit 82067d1424

View file

@ -184,7 +184,12 @@ function inject(serv,settings)
player.on('modpe', function (command) {
console.log(command);
procCmd(command);
try {
procCmd(command);
}
catch(err) {
console.log("MODPE error: "+err.stack);
}
});
function newLevel() {