From 4fedc3a31ee20813e4c81377b3bd2af05a26b858 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 7 Jan 2021 12:09:09 +0100 Subject: Add minetest.interact --- src/script/lua_api/l_clientobject.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script/lua_api/l_clientobject.cpp') 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); -- cgit v1.2.3