mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
* squashed: [Client-sided scripting] Don't register functions that don't work. (#5091)
This commit is contained in:
parent
2efae3ffd7
commit
cb3a61f8db
10 changed files with 66 additions and 6 deletions
|
@ -28,6 +28,10 @@ extern "C" {
|
|||
#include <lauxlib.h>
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
#include "client.h"
|
||||
#endif
|
||||
|
||||
class ScriptApiBase;
|
||||
class Server;
|
||||
class Environment;
|
||||
|
@ -38,6 +42,10 @@ class ModApiBase {
|
|||
public:
|
||||
static ScriptApiBase* getScriptApiBase(lua_State *L);
|
||||
static Server* getServer(lua_State *L);
|
||||
#ifndef SERVER
|
||||
static Client* getClient(lua_State *L);
|
||||
#endif // !SERVER
|
||||
|
||||
static Environment* getEnv(lua_State *L);
|
||||
static GUIEngine* getGuiEngine(lua_State *L);
|
||||
// When we are not loading the mod, this function returns "."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue