From cd8a7fe47298be12620cab62be8cf0816fabb095 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Tue, 15 Nov 2022 10:45:12 -0500 Subject: Add MetaDataRef:get_keys (#12841) --- src/script/lua_api/l_nodemeta.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/script/lua_api/l_nodemeta.cpp') diff --git a/src/script/lua_api/l_nodemeta.cpp b/src/script/lua_api/l_nodemeta.cpp index 3cfb25883..f4edc1790 100644 --- a/src/script/lua_api/l_nodemeta.cpp +++ b/src/script/lua_api/l_nodemeta.cpp @@ -209,6 +209,7 @@ const luaL_Reg NodeMetaRef::methodsServer[] = { luamethod(MetaDataRef, set_int), luamethod(MetaDataRef, get_float), luamethod(MetaDataRef, set_float), + luamethod(MetaDataRef, get_keys), luamethod(MetaDataRef, to_table), luamethod(MetaDataRef, from_table), luamethod(NodeMetaRef, get_inventory), @@ -230,6 +231,7 @@ const luaL_Reg NodeMetaRef::methodsClient[] = { luamethod(MetaDataRef, get_string), luamethod(MetaDataRef, get_int), luamethod(MetaDataRef, get_float), + luamethod(MetaDataRef, get_keys), luamethod(MetaDataRef, to_table), {0,0} }; -- cgit v1.2.3