diff --git a/src/main/javascript/core/_scriptcraft.js b/src/main/javascript/core/_scriptcraft.js index 94ebf5a..d015284 100644 --- a/src/main/javascript/core/_scriptcraft.js +++ b/src/main/javascript/core/_scriptcraft.js @@ -321,6 +321,8 @@ var server = org.bukkit.Bukkit.server; other files in the same directory */ var sortByModule = function(a,b){ + a = _canonize(a); + b = _canonize(b); var aparts = (""+a).split(/\//); var bparts = (""+b).split(/\//); var adir = aparts[aparts.length-2];