forked from mtcontrib/weather_pack
added add heigth limit for weather visibility
This commit is contained in:
parent
e90133b30a
commit
da72a58293
@ -191,7 +191,7 @@ heavy_rain.in_area = function(position)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if position.y > -10 then
|
if position.y > -10 and position.y < 120 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
@ -144,7 +144,7 @@ light_rain.in_area = function(position)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if position.y > -10 then
|
if position.y > -10 and position.y < 120 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
2
rain.lua
2
rain.lua
@ -147,7 +147,7 @@ rain.in_area = function(position)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if position.y > -10 then
|
if position.y > -10 and position.y < 120 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user