diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2021-05-30 20:24:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-30 20:24:12 +0200 |
commit | c9144ae5e22ee041fed2512cd3055608c6e9a4bc (patch) | |
tree | bcdcf98233034af6b6cf10f61dde0d1711bac068 /src/script/lua_api/l_env.h | |
parent | 89f3991351185b365ccd10525e74d35d7bb2da46 (diff) | |
download | minetest-c9144ae5e22ee041fed2512cd3055608c6e9a4bc.tar.xz |
Add core.compare_block_status function (#11247)
Makes it possible to check the status of the mapblock in a future-extensible way.
Diffstat (limited to 'src/script/lua_api/l_env.h')
-rw-r--r-- | src/script/lua_api/l_env.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h index 42c2d64f8..979b13c40 100644 --- a/src/script/lua_api/l_env.h +++ b/src/script/lua_api/l_env.h @@ -195,6 +195,9 @@ private: // stops forceloading a position static int l_forceload_free_block(lua_State *L); + // compare_block_status(nodepos) + static int l_compare_block_status(lua_State *L); + // Get a string translated server side static int l_get_translated_string(lua_State * L); @@ -207,7 +210,8 @@ public: static void Initialize(lua_State *L, int top); static void InitializeClient(lua_State *L, int top); - static struct EnumString es_ClearObjectsMode[]; + static const EnumString es_ClearObjectsMode[]; + static const EnumString es_BlockStatusType[]; }; class LuaABM : public ActiveBlockModifier { |