}
} else {
// cannot use this.mc.theWorld.getWorldInfo().getWorldName() as it
// is set statically to "MpServer".
IntegratedServer server = this.mc.getIntegratedServer();
worldName = (server != null) ? server.getFolderName() : "sp_world";
}
// strip invalid characters from the server name so that it
// can't be something malicious like '..\..\..\windows\'
worldName = MwUtil.mungeString(worldName);