add more rain particles during thunder

This commit is contained in:
cora 2021-09-25 03:39:20 +02:00
parent 22c49ea605
commit 9db099fe6d
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ mcl_weather.rain.add_rain_particlespawner = function(name,def)
end
local name=player:get_player_name()
if mcl_weather.is_outdoor(player:get_pos()) then
if mcl_weather.state ~= "thunder" then def.amount=PARTICLES_COUNT_THUNDER end
def.player = name
def.attached = player
mcl_weather.rain.ps[name] = minetest.add_particlespawner(def)