aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_entity.cpp
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-04-29 12:08:16 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-29 12:08:16 +0200
commitdc5bc6cac7b81ab27e0064bc25b5fd1d8d617340 (patch)
tree5b7be08157b8c377dfd10152c04d44687e9b1c81 /src/script/cpp_api/s_entity.cpp
parentecf08255b0b6b9d15b86f614942ac8f53f41302a (diff)
downloadhax-minetest-server-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.gz
hax-minetest-server-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.zip
[CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
Diffstat (limited to 'src/script/cpp_api/s_entity.cpp')
-rw-r--r--src/script/cpp_api/s_entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_entity.cpp b/src/script/cpp_api/s_entity.cpp
index 2e1d277e4..4c1e296d4 100644
--- a/src/script/cpp_api/s_entity.cpp
+++ b/src/script/cpp_api/s_entity.cpp
@@ -57,7 +57,7 @@ bool ScriptApiEntity::luaentity_Add(u16 id, const char *name)
// Add object reference
// This should be userdata with metatable ObjectRef
- objectrefGet(L, id);
+ push_objectRef(L, id);
luaL_checktype(L, -1, LUA_TUSERDATA);
if (!luaL_checkudata(L, -1, "ObjectRef"))
luaL_typerror(L, -1, "ObjectRef");