1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 09:25:37 +02:00

script: Put getGuiEngine() inside a client-only #ifdef

This commit is contained in:
sfan5
2020-04-26 20:57:27 +02:00
committed by Loïc Blot
parent d3f50f216f
commit 8a03097450
3 changed files with 9 additions and 2 deletions

View File

@@ -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)
{