mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
script: Put getGuiEngine() inside a client-only #ifdef
This commit is contained in:
parent
d3f50f216f
commit
8a03097450
3 changed files with 9 additions and 2 deletions
|
@ -62,10 +62,12 @@ Environment *ModApiBase::getEnv(lua_State *L)
|
|||
return getScriptApiBase(L)->getEnv();
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
GUIEngine *ModApiBase::getGuiEngine(lua_State *L)
|
||||
{
|
||||
return getScriptApiBase(L)->getGuiEngine();
|
||||
}
|
||||
#endif
|
||||
|
||||
std::string ModApiBase::getCurrentModPath(lua_State *L)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue