From 48493a979b4300d96ba17e2ef3a881641323f43e Mon Sep 17 00:00:00 2001 From: paramat Date: Fri, 2 Mar 2018 21:27:59 +0000 Subject: Gennotify: Add 'minetest.get_decoration_id' API Returns the decoration ID for the provided decoration name string. For use with gennotify, to know the decoration IDs for use in 'minetest.set_gen_notify'. --- src/script/lua_api/l_mapgen.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/script/lua_api/l_mapgen.h') diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index 44073620b..713069633 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -76,6 +76,10 @@ private: // get_gen_notify() static int l_get_gen_notify(lua_State *L); + // get_decoration_id(decoration_name) + // returns the decoration ID as used in gennotify + static int l_get_decoration_id(lua_State *L); + // register_biome({lots of stuff}) static int l_register_biome(lua_State *L); -- cgit v1.2.3