Fix 'defaultworld' setting (didn't work previously)

This commit is contained in:
Mike Primm 2011-11-01 20:51:10 +08:00 committed by mikeprimm
parent c953097403
commit 7ba72941dc

View File

@ -71,6 +71,8 @@ DynMap.prototype = {
me.defaultworld = me.defaultworld || world;
});
var urlarg = me.getParameterByName('worldname');
if(urlarg == "")
urlarg = me.options.defaultworld || "";
if(urlarg != "") {
me.defaultworld = me.worlds[urlarg] || me.defaultworld;
}