chore: update to support WorldSessionMgr PR 21400 (#258)

This commit is contained in:
manstfu
2025-02-14 14:22:39 +01:00
committed by GitHub
parent 17ca75dd61
commit 247a7f6763
3 changed files with 5 additions and 3 deletions

View File

@@ -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;
}