mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
many modules fixes
This commit is contained in:
@@ -70,7 +70,7 @@ void ModuleManager::discoverModulesPath()
|
||||
for(const std::string& dir : possibleModulesDirs) {
|
||||
// try to add module directory
|
||||
if(g_resources.addToSearchPath(dir, false)) {
|
||||
g_logger.info(stdext::format("Using modules directory '%s'", dir.c_str()));
|
||||
//g_logger.info(stdext::format("Using modules directory '%s'", dir.c_str()));
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ void ModuleManager::discoverModulesPath()
|
||||
for(const std::string& dir : possibleAddonsDirs) {
|
||||
// try to add module directory
|
||||
if(g_resources.addToSearchPath(dir, true)) {
|
||||
g_logger.info(stdext::format("Using addons directory '%s'", dir.c_str()));
|
||||
//g_logger.info(stdext::format("Using addons directory '%s'", dir.c_str()));
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
@@ -252,7 +252,7 @@ void push_luavalue(const OTMLNodePtr& node)
|
||||
int currentIndex = 1;
|
||||
for(const OTMLNodePtr& cnode : node->children()) {
|
||||
push_otml_subnode_luavalue(cnode);
|
||||
if(cnode->isUnique()) {
|
||||
if(cnode->isUnique() && !cnode->tag().empty()) {
|
||||
g_lua.setField(cnode->tag());
|
||||
} else
|
||||
g_lua.rawSeti(currentIndex++);
|
||||
|
Reference in New Issue
Block a user