mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +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:
1 parent
b904689a98
commit
342a4c1b17
3 files changed
+16
-13
No files matched your search
+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