summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-07-01 12:31:49 +0200
committerGitHub <noreply@github.com>2018-07-01 12:31:49 +0200
commit49509d2f746b7a8d50e685cfd0e0b391676b9466 (patch)
treee73ea6eaab8682550acf38ae29c22ea00a74f6e6 /src/script/lua_api/l_object.cpp
parent6f22d14206824911b620ecec450689f84e6d278b (diff)
downloadminetest-49509d2f746b7a8d50e685cfd0e0b391676b9466.tar.gz
minetest-49509d2f746b7a8d50e685cfd0e0b391676b9466.tar.bz2
minetest-49509d2f746b7a8d50e685cfd0e0b391676b9466.zip
Log deprecated Lua function calls (#7491)
Diffstat (limited to 'src/script/lua_api/l_object.cpp')
-rw-r--r--src/script/lua_api/l_object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp
index b6f37d51b..1ea7d7ff2 100644
--- a/src/script/lua_api/l_object.cpp
+++ b/src/script/lua_api/l_object.cpp
@@ -1815,6 +1815,7 @@ void ObjectRef::Register(lua_State *L)
lua_pop(L, 1); // drop metatable
+ markAliasDeprecated(methods);
luaL_openlib(L, 0, methods, 0); // fill methodtable
lua_pop(L, 1); // drop methodtable
@@ -1823,7 +1824,7 @@ void ObjectRef::Register(lua_State *L)
}
const char ObjectRef::className[] = "ObjectRef";
-const luaL_Reg ObjectRef::methods[] = {
+luaL_Reg ObjectRef::methods[] = {
// ServerActiveObject
luamethod(ObjectRef, remove),
luamethod_aliased(ObjectRef, get_pos, getpos),