added add heigth limit for weather visibility

This commit is contained in:
Arturas Norkus 2017-06-24 22:22:59 +03:00
parent e90133b30a
commit da72a58293
4 changed files with 7 additions and 7 deletions

View File

@ -191,7 +191,7 @@ heavy_rain.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false

View File

@ -144,7 +144,7 @@ light_rain.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false

View File

@ -147,7 +147,7 @@ rain.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false

View File

@ -127,7 +127,7 @@ snow.in_area = function(position)
return false
end
if position.y > -10 then
if position.y > -10 and position.y < 120 then
return true
end
return false