diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-05-19 21:08:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 21:08:37 +0200 |
commit | c94d37827dd3a8be9dcc59bb693032ba7ea07922 (patch) | |
tree | ada7fd843d405f8ec6f1c43b749f553f4a215214 /src/script/lua_api | |
parent | 7d3972a5049324f776ab008894c34569641f0073 (diff) | |
download | minetest-c94d37827dd3a8be9dcc59bb693032ba7ea07922.tar.gz minetest-c94d37827dd3a8be9dcc59bb693032ba7ea07922.tar.bz2 minetest-c94d37827dd3a8be9dcc59bb693032ba7ea07922.zip |
Rework functionality of leveled nodes (#9852)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index b8a8a5ce1..89ec9dc7e 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -529,13 +529,13 @@ int ModApiEnvMod::l_set_node_level(lua_State *L) // add_node_level(pos, level) // pos = {x=num, y=num, z=num} -// level: 0..63 +// level: -127..127 int ModApiEnvMod::l_add_node_level(lua_State *L) { GET_ENV_PTR; v3s16 pos = read_v3s16(L, 1); - u8 level = 1; + s16 level = 1; if(lua_isnumber(L, 2)) level = lua_tonumber(L, 2); MapNode n = env->getMap().getNode(pos); |