diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-04-30 17:42:51 +0100 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-04-30 18:42:51 +0200 |
commit | 0b5b32b026291d5bd8e47acebca10259a379fc1c (patch) | |
tree | 6e308bb5ccf3fb3050a40cd784456387c67b106e /src/script/lua_api/l_storage.cpp | |
parent | 54606e103d5b2d2bace6d57c45e48804c5dec487 (diff) | |
download | minetest-0b5b32b026291d5bd8e47acebca10259a379fc1c.tar.gz minetest-0b5b32b026291d5bd8e47acebca10259a379fc1c.tar.bz2 minetest-0b5b32b026291d5bd8e47acebca10259a379fc1c.zip |
MetaDataRef: Add contains() and get() (#7214)
Diffstat (limited to 'src/script/lua_api/l_storage.cpp')
-rw-r--r-- | src/script/lua_api/l_storage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_storage.cpp b/src/script/lua_api/l_storage.cpp index 01810ca8b..280ec7266 100644 --- a/src/script/lua_api/l_storage.cpp +++ b/src/script/lua_api/l_storage.cpp @@ -134,6 +134,8 @@ void StorageRef::clearMeta() const char StorageRef::className[] = "StorageRef"; const luaL_Reg StorageRef::methods[] = { + luamethod(MetaDataRef, contains), + luamethod(MetaDataRef, get), luamethod(MetaDataRef, get_string), luamethod(MetaDataRef, set_string), luamethod(MetaDataRef, get_int), |