fix sound never stopping

This commit is contained in:
cora 2021-09-28 03:01:23 +02:00
parent 8f619ab5c3
commit 2ed3e01179
1 changed files with 1 additions and 3 deletions

View File

@ -163,10 +163,8 @@ function mcl_weather.stop_weather_player(name,def)
local player=minetest.get_player_by_name(name)
player:set_clouds({color="#FFF0F0E5"})
end
if def.sound then
mcl_weather.remove_sound(name,def.sound)
end
end
function mcl_weather.start_weather(def)
if def.start then def.start() end