mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Fix for clickies not working, changed order of dispatch events to allow nuking items from regular item events. Changed the lua modules path.
This commit is contained in:
+4
-1
@@ -772,10 +772,13 @@ void LuaParser::ReloadQuests() {
|
||||
lua_pushnil(L);
|
||||
lua_setglobal(L, "os");
|
||||
|
||||
lua_pushnil(L);
|
||||
lua_setglobal(L, "io");
|
||||
|
||||
lua_getglobal(L, "package");
|
||||
lua_getfield(L, -1, "path");
|
||||
std::string module_path = lua_tostring(L,-1);
|
||||
module_path += "lua_modules/?.lua";
|
||||
module_path += "./lua_modules/?.lua";
|
||||
lua_pop(L, 1);
|
||||
lua_pushstring(L, module_path.c_str());
|
||||
lua_setfield(L, -2, "path");
|
||||
|
||||
Reference in New Issue
Block a user