diff options
author | kwolekr <kwolekr@minetest.net> | 2013-09-16 22:52:24 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-09-16 23:33:53 -0400 |
commit | 9bccd75e340d7502251c233418e0afccd9c4a49c (patch) | |
tree | 18c6760ef94d7a9a2f1a79fc25d65b730a863a49 /src/script | |
parent | c9eb17aba32036e3a2cf25166e1ab256d6dd2cb7 (diff) | |
download | minetest-9bccd75e340d7502251c233418e0afccd9c4a49c.tar.gz minetest-9bccd75e340d7502251c233418e0afccd9c4a49c.tar.bz2 minetest-9bccd75e340d7502251c233418e0afccd9c4a49c.zip |
Weather: Clean up getHeat/getHumidity somewhat
Diffstat (limited to 'src/script')
-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 8b0d8cd6e..436eb014d 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -764,7 +764,7 @@ int ModApiEnvMod::l_get_heat(lua_State *L) GET_ENV_PTR; v3s16 pos = read_v3s16(L, 1); - lua_pushnumber(L, env->getServerMap().getHeat(env, pos)); + lua_pushnumber(L, env->getServerMap().updateBlockHeat(env, pos)); return 1; } @@ -775,7 +775,7 @@ int ModApiEnvMod::l_get_humidity(lua_State *L) GET_ENV_PTR; v3s16 pos = read_v3s16(L, 1); - lua_pushnumber(L, env->getServerMap().getHumidity(env, pos)); + lua_pushnumber(L, env->getServerMap().updateBlockHumidity(env, pos)); return 1; } |