forked from Mineclonia/Mineclonia
add correct minecraft conditions for rain
This commit is contained in:
parent
f2b399cbbd
commit
590abfeb0f
|
@ -86,17 +86,16 @@ mcl_weather.register_weather("rain",{
|
|||
}
|
||||
},
|
||||
start = function() mcl_weather.rain.raining = true end,
|
||||
start_player = function(name) end,
|
||||
clear = function() mcl_weather.rain.raining = false end,
|
||||
at_pos = function(pos)
|
||||
local biome=minetest.get_biome_data(pos)
|
||||
if mcl_worlds.has_weather(pos) and biome.heat > 15 and biome.heat < 95 then
|
||||
if mcl_worlds.has_weather(pos) and biome.heat > 95 then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
change_at_pos = function(pos)
|
||||
change_at_pos=function(pos)
|
||||
local biome=minetest.get_biome_data(pos)
|
||||
if mcl_worlds.has_weather(pos) and biome.heat < 15 then
|
||||
if mcl_worlds.has_weather(pos) and ( biome.heat < 15 or pos.y > 64 ) then
|
||||
return "snow"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue