let samplemoneymodule see EconomyModule config setting

master
UbitUmarov 2020-04-16 01:40:39 +01:00
parent e859985cfa
commit bdddedc550
1 changed files with 6 additions and 2 deletions

View File

@ -251,10 +251,14 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
if(String.IsNullOrEmpty(mmodule))
{
if(economyConfig != null)
mmodule = economyConfig.GetString("economymodule","");
{
mmodule = economyConfig.GetString("economymodule", "");
if (String.IsNullOrEmpty(mmodule))
mmodule = economyConfig.GetString("EconomyModule", "");
}
}
if(!String.IsNullOrEmpty(mmodule) && mmodule != Name)
if (!String.IsNullOrEmpty(mmodule) && mmodule != Name)
{
// some other money module selected
m_enabled = false;