aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_clientobject.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-01-07 12:09:09 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-01-07 12:09:09 +0100
commit4fedc3a31ee20813e4c81377b3bd2af05a26b858 (patch)
tree11aa9dd914ce1c1c48f2dc6b096fbb5e14e3588f /src/script/lua_api/l_clientobject.cpp
parentdc67f669e9c85df7b54bc1e8775ca4a45cd7cc09 (diff)
downloaddragonfireclient-4fedc3a31ee20813e4c81377b3bd2af05a26b858.tar.xz
Add minetest.interact
Diffstat (limited to 'src/script/lua_api/l_clientobject.cpp')
-rw-r--r--src/script/lua_api/l_clientobject.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/lua_api/l_clientobject.cpp b/src/script/lua_api/l_clientobject.cpp
index 70151ba40..521aba023 100644
--- a/src/script/lua_api/l_clientobject.cpp
+++ b/src/script/lua_api/l_clientobject.cpp
@@ -24,6 +24,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "object_properties.h"
#include "util/pointedthing.h"
+ClientActiveObject *ClientObjectRef::getClientActiveObject()
+{
+ return m_object;
+}
+
ClientObjectRef *ClientObjectRef::checkobject(lua_State *L, int narg)
{
luaL_checktype(L, narg, LUA_TUSERDATA);