mirror of
https://gitlab.com/rautars/weather_pack.git
synced 2025-07-16 05:40:22 +02:00
added add heigth limit for weather visibility
This commit is contained in:
8
snow.lua
8
snow.lua
@ -117,9 +117,9 @@ end
|
||||
|
||||
local particles_number_per_update = 10
|
||||
snow.render = function(dtime, player)
|
||||
for i=particles_number_per_update, 1,-1 do
|
||||
display_particles(player)
|
||||
end
|
||||
for i=particles_number_per_update, 1,-1 do
|
||||
display_particles(player)
|
||||
end
|
||||
end
|
||||
|
||||
snow.in_area = function(position)
|
||||
@ -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
|
||||
|
Reference in New Issue
Block a user