mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Change the preprocessor macro that differs server/client builds
This commit is contained in:
parent
e2ea359925
commit
37095f3e49
45 changed files with 137 additions and 88 deletions
|
@ -51,7 +51,7 @@ ServerInventoryManager *ModApiBase::getServerInventoryMgr(lua_State *L)
|
|||
return getScriptApiBase(L)->getServer()->getInventoryMgr();
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
#if CHECK_CLIENT_BUILD()
|
||||
Client *ModApiBase::getClient(lua_State *L)
|
||||
{
|
||||
return getScriptApiBase(L)->getClient();
|
||||
|
@ -68,7 +68,7 @@ Environment *ModApiBase::getEnv(lua_State *L)
|
|||
return getScriptApiBase(L)->getEnv();
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
#if CHECK_CLIENT_BUILD()
|
||||
GUIEngine *ModApiBase::getGuiEngine(lua_State *L)
|
||||
{
|
||||
return getScriptApiBase(L)->getGuiEngine();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue