mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Weather: Clean up getHeat/getHumidity somewhat
This commit is contained in:
parent
c9eb17aba3
commit
9bccd75e34
13 changed files with 143 additions and 77 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue