aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_localplayer.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-05-11 14:07:30 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-05-11 14:07:30 +0200
commit4f613bbf5118ebe8c3610514e7f4206e930783bf (patch)
treebcb4bbb7609019f948e31b7749e1beb6b23e634d /src/script/lua_api/l_localplayer.cpp
parentc86dcd0f682f76339989afec255bf3d7078db096 (diff)
downloaddragonfireclient-4f613bbf5118ebe8c3610514e7f4206e930783bf.tar.xz
Include tile definitions in get_node_def; Client-side minetest.object_refs table
Diffstat (limited to 'src/script/lua_api/l_localplayer.cpp')
-rw-r--r--src/script/lua_api/l_localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_localplayer.cpp b/src/script/lua_api/l_localplayer.cpp
index 747657016..b8673379a 100644
--- a/src/script/lua_api/l_localplayer.cpp
+++ b/src/script/lua_api/l_localplayer.cpp
@@ -483,7 +483,7 @@ int LuaLocalPlayer::l_get_object(lua_State *L)
ClientEnvironment &env = getClient(L)->getEnv();
ClientActiveObject *obj = env.getGenericCAO(player->getCAO()->getId());
- ClientObjectRef::create(L, obj);
+ push_objectRef(L, obj->getId());
return 1;
}