1
0
mirror of https://github.com/t-affeldt/regional_weather.git synced 2025-07-18 16:30:31 +02:00

Add additional constraints

This commit is contained in:
Till Affeldt
2023-02-24 09:51:14 +01:00
parent d04daec67d
commit 222f708760
15 changed files with 96 additions and 57 deletions

View File

@ -20,7 +20,7 @@ climate_api.register_abm({
action = function (pos, node, env)
local wetness = minetest.get_item_group(node.name, "wet") or 0
if wetness < 2 and env.humidity > 55 then
if wetness < 2 and env.humidity > 50 then
pedology.wetten(pos)
elseif wetness > 0 and wetness < 3 and env.humidity < 40 then
pedology.dry(pos)