mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
script: Put getGuiEngine() inside a client-only #ifdef
This commit is contained in:
@@ -32,12 +32,12 @@ extern "C" {
|
||||
|
||||
#ifndef SERVER
|
||||
class Client;
|
||||
class GUIEngine;
|
||||
#endif
|
||||
|
||||
class ScriptApiBase;
|
||||
class Server;
|
||||
class Environment;
|
||||
class GUIEngine;
|
||||
|
||||
class ModApiBase : protected LuaHelper {
|
||||
|
||||
@@ -46,12 +46,13 @@ public:
|
||||
static Server* getServer(lua_State *L);
|
||||
#ifndef SERVER
|
||||
static Client* getClient(lua_State *L);
|
||||
static GUIEngine* getGuiEngine(lua_State *L);
|
||||
#endif // !SERVER
|
||||
|
||||
static IGameDef* getGameDef(lua_State *L);
|
||||
|
||||
static Environment* getEnv(lua_State *L);
|
||||
static GUIEngine* getGuiEngine(lua_State *L);
|
||||
|
||||
// When we are not loading the mod, this function returns "."
|
||||
static std::string getCurrentModPath(lua_State *L);
|
||||
|
||||
|
Reference in New Issue
Block a user