Skip to content

Commit

Permalink
weather: Fix error caused by missing biomes
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker authored and sfan5 committed Feb 7, 2021
1 parent 9d419bf commit c1b236b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/weather/init.lua
Expand Up @@ -88,7 +88,8 @@ local function update_clouds()
local n_speedz = nobj_speedz:get_2d({x = time, y = 0}) -- -1 to 1

for _, player in ipairs(minetest.get_connected_players()) do
local humid = minetest.get_humidity(player:get_pos())
-- Fallback to mid-value 50 for very old worlds
local humid = minetest.get_humidity(player:get_pos()) or 50
-- Default and classic density value is 0.4, make this happen
-- at humidity midvalue 50 when n_density is at midvalue 0.5.
-- density_max = 0.25 at humid = 0.
Expand Down

0 comments on commit c1b236b

Please sign in to comment.