mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Properly check for sound update (fix warning)
This commit is contained in:
parent
ca27237ffc
commit
d9da50e292
1 changed files with 2 additions and 1 deletions
|
@ -68,9 +68,10 @@ end
|
||||||
-- no no no NO NO f*.. no. no manual particle creatin' PLS!! this sends EVERY particle over the net.
|
-- no no no NO NO f*.. no. no manual particle creatin' PLS!! this sends EVERY particle over the net.
|
||||||
function mcl_weather.rain.add_rain_particles(player)
|
function mcl_weather.rain.add_rain_particles(player)
|
||||||
mcl_weather.rain.last_rp_count = mcl_weather.rain.particles_count
|
mcl_weather.rain.last_rp_count = mcl_weather.rain.particles_count
|
||||||
|
local l = false
|
||||||
for k,v in pairs(textures) do
|
for k,v in pairs(textures) do
|
||||||
psdef.texture=v
|
psdef.texture=v
|
||||||
mcl_weather.add_spawner_player(player,"rain"..k,psdef)
|
l = l or mcl_weather.add_spawner_player(player,"rain"..k,psdef)
|
||||||
end
|
end
|
||||||
if l then
|
if l then
|
||||||
update_sound[player:get_player_name()]=true
|
update_sound[player:get_player_name()]=true
|
||||||
|
|
Loading…
Reference in a new issue