From 9bccd75e340d7502251c233418e0afccd9c4a49c Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 16 Sep 2013 22:52:24 -0400 Subject: Weather: Clean up getHeat/getHumidity somewhat --- src/script/lua_api/l_env.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/lua_api') 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; } -- cgit v1.2.3