Browse Source

Mods now have access to this.folderName so resources can be loaded without hard-coding folder names

tags/v0.1.2
bigbadwaffle 7 years ago
parent
commit
4f734daa19
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/server/misc/mods.js

+ 3
- 3
src/server/misc/mods.js View File

@@ -6,8 +6,6 @@ define([
return {
init: function() {
var modList = fileLister.getFolderList('mods');
console.log(modList);


modList.forEach(function(m) {
var mod = null;
@@ -16,8 +14,10 @@ define([
}
catch (e) {}

if (mod)
if (mod) {
mod.folderName = 'server/mods/' + m
mod.init();
}
}, this);
}
};

Loading…
Cancel
Save