forked from Mineclonia/Mineclonia
don't rain when indoors
This commit is contained in:
parent
1adcdc1dbb
commit
9b42b0d5c7
|
@ -87,19 +87,21 @@ mcl_weather.rain.add_rain_particlespawner = function(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.add_particlespawner({
|
if mcl_weather.is_outdoor(player:get_pos()) then
|
||||||
amount = mcl_weather.rain.particles_count,
|
minetest.add_particlespawner({
|
||||||
time=1,
|
amount = math.random(mcl_weather.rain.particles_count-100,mcl_weather.rain.particles_count+100),
|
||||||
minpos = minp, maxpos = maxp,
|
time=1,
|
||||||
minvel = vel, maxvel = vel,
|
minpos = minp, maxpos = maxp,
|
||||||
minacc = acc, maxacc = acc,
|
minvel = vel, maxvel = vel,
|
||||||
minexptime = exp, maxexptime = exp,
|
minacc = acc, maxacc = acc,
|
||||||
minsize = size, maxsize= size,
|
minexptime = exp, maxexptime = exp,
|
||||||
collisiondetection = true, collision_removal = true,
|
minsize = size, maxsize= size,
|
||||||
vertical = true,
|
collisiondetection = true, collision_removal = true,
|
||||||
texture = texture,
|
vertical = true,
|
||||||
playername = player:get_player_name()
|
texture = texture,
|
||||||
})
|
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