aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_client.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/cpp_api/s_client.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/cpp_api/s_client.cpp')
-rw-r--r--src/script/cpp_api/s_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp
index 2231cf573..7971e4081 100644
--- a/src/script/cpp_api/s_client.cpp
+++ b/src/script/cpp_api/s_client.cpp
@@ -302,7 +302,7 @@ void ScriptApiClient::on_object_properties_change(s16 id)
lua_getfield(L, -1, "registered_on_object_properties_change");
// Push data
- ClientObjectRef::create(L, id);
+ push_objectRef(L, id);
// Call functions
runCallbacks(1, RUN_CALLBACKS_MODE_FIRST);
@@ -317,7 +317,7 @@ void ScriptApiClient::on_object_hp_change(s16 id)
lua_getfield(L, -1, "registered_on_object_hp_change");
// Push data
- ClientObjectRef::create(L, id);
+ push_objectRef(L, id);
// Call functions
runCallbacks(1, RUN_CALLBACKS_MODE_FIRST);