forked from Mineclonia/Mineclonia
don't rain when indoors
This commit is contained in:
parent
1adcdc1dbb
commit
9b42b0d5c7
|
@ -87,8 +87,9 @@ mcl_weather.rain.add_rain_particlespawner = function(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if mcl_weather.is_outdoor(player:get_pos()) then
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = mcl_weather.rain.particles_count,
|
amount = math.random(mcl_weather.rain.particles_count-100,mcl_weather.rain.particles_count+100),
|
||||||
time=1,
|
time=1,
|
||||||
minpos = minp, maxpos = maxp,
|
minpos = minp, maxpos = maxp,
|
||||||
minvel = vel, maxvel = vel,
|
minvel = vel, maxvel = vel,
|
||||||
|
@ -100,6 +101,7 @@ mcl_weather.rain.add_rain_particlespawner = function(name)
|
||||||
texture = texture,
|
texture = texture,
|
||||||
playername = player:get_player_name()
|
playername = player:get_player_name()
|
||||||
})
|
})
|
||||||
|
end
|
||||||
mcl_weather.rain.init_done = true
|
mcl_weather.rain.init_done = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue