1
0
mirror of https://gitlab.com/rautars/weather_pack.git synced 2025-07-16 05:40:22 +02:00

added biome check based on noice parameters

This commit is contained in:
Arturas Norkus
2017-05-28 09:49:37 +03:00
parent d51e0e28b0
commit b2f32023f5
6 changed files with 114 additions and 6 deletions

View File

@ -8,7 +8,7 @@
local light_rain = {}
light_rain.last_check = 0
light_rain.check_interval = 300
light_rain.check_interval = 200
-- Weather identification code
light_rain.code = "light_rain"
@ -144,6 +144,11 @@ local display_rain_particles = function(player)
end
light_rain.in_area = function(position)
if hw_utils.is_biome_frozen(position) or
hw_utils.is_biome_dry(position) then
return false
end
if position.y > -10 then
return true
end