aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_env.cpp4
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;
}