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 rain = {}
rain.last_check = 0
rain.check_interval = 400
rain.check_interval = 300
-- Weather identification code
rain.code = "rain"
@ -147,6 +147,11 @@ local display_rain_particles = function(player)
end
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