diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-01-07 12:09:09 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-01-07 12:09:09 +0100 |
commit | 4fedc3a31ee20813e4c81377b3bd2af05a26b858 (patch) | |
tree | 11aa9dd914ce1c1c48f2dc6b096fbb5e14e3588f /src/script/lua_api/l_clientobject.cpp | |
parent | dc67f669e9c85df7b54bc1e8775ca4a45cd7cc09 (diff) | |
download | dragonfireclient-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.cpp | 5 |
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); |