Fix soundpacks not working

v1.18.x
Peter Jaszkowiak 8 years ago
parent 970c7a8caa
commit 759c3f5584

@ -263,12 +263,12 @@ module.exports = function (Plugins) {
soundpack.id = pluginData.id; soundpack.id = pluginData.id;
soundpack.dir = path.join(pluginData.path, soundpack.dir); soundpack.dir = path.join(pluginData.path, soundpack.dir);
async.each(Object.keys(soundpack.sounds), function (key, next) { async.each(Object.keys(soundpack.sounds), function (key, next) {
file.exists(path.join(soundpack.dir, soundpack.sounds[key]), function (exists) { file.exists(path.join(soundpack.dir, soundpack.sounds[key]), function (err, exists) {
if (!exists) { if (!exists) {
delete soundpack.sounds[key]; delete soundpack.sounds[key];
} }
next(); next(err);
}); });
}, function (err) { }, function (err) {
if (err) { if (err) {

Loading…
Cancel
Save