]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_base.cpp
[CSM] Add method that display chat to client-sided lua. (#5089) (#5091)
[dragonfireclient.git] / src / script / lua_api / l_base.cpp
index 515a7d9332c1802369c9af29375d0ab96ada7a3f..f2703718a09fea3bbef804361bebff743aeaebfa 100644 (file)
@@ -37,6 +37,12 @@ Server *ModApiBase::getServer(lua_State *L)
        return getScriptApiBase(L)->getServer();
 }
 
+#ifndef SERVER
+Client *ModApiBase::getClient(lua_State *L)
+{
+       return getScriptApiBase(L)->getClient();
+}
+#endif
 Environment *ModApiBase::getEnv(lua_State *L)
 {
        return getScriptApiBase(L)->getEnv();