chore: update to support WorldSessionMgr PR 21400 (#258)
This commit is contained in:
@@ -282,7 +282,7 @@ namespace LuaGlobalFunctions
|
||||
*/
|
||||
int GetPlayerCount(lua_State* L)
|
||||
{
|
||||
Eluna::Push(L, eWorld->GetActiveSessionCount());
|
||||
Eluna::Push(L, eWorldSessionMgr->GetActiveSessionCount());
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1278,7 +1278,7 @@ namespace LuaGlobalFunctions
|
||||
int SendWorldMessage(lua_State* L)
|
||||
{
|
||||
const char* message = Eluna::CHECKVAL<const char*>(L, 1);
|
||||
eWorld->SendServerMessage(SERVER_MSG_STRING, message);
|
||||
eWorldSessionMgr->SendServerMessage(SERVER_MSG_STRING, message);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user