mirror of
https://gitlab.com/rautars/weather_pack.git
synced 2025-10-30 16:15:32 +01:00
added add heigth limit for weather visibility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
rain.lua
2
rain.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user