diff options
author | Vincent Glize <vincentglize@hotmail.fr> | 2017-04-29 12:08:16 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-29 12:08:16 +0200 |
commit | dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340 (patch) | |
tree | 5b7be08157b8c377dfd10152c04d44687e9b1c81 /src/script/cpp_api/s_entity.cpp | |
parent | ecf08255b0b6b9d15b86f614942ac8f53f41302a (diff) | |
download | minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.gz minetest-dc5bc6cac7b81ab27e0064bc25b5fd1d8d617340.tar.bz2 minetest-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.cpp | 2 |
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"); |