Fix rain cloud color

This commit is contained in:
Wuzzy 2017-06-06 00:18:20 +02:00
parent cf7fe5e611
commit 1f24b495d2
1 changed files with 1 additions and 1 deletions

View File

@ -93,6 +93,7 @@ rain.remove_player = function(player)
local player_meta = weather.players[player:get_player_name()]
if player_meta ~= nil and player_meta.origin_sky ~= nil then
player:set_sky(player_meta.origin_sky[1], player_meta.origin_sky[2], player_meta.origin_sky[3])
player:set_clouds({color="#FFF0F0E5"})
weather.players[player:get_player_name()] = nil
end
end
@ -136,7 +137,6 @@ rain.clear = function()
rain.init_done = false
skycolor.remove_layer("weather-pack-rain-sky")
for _, player in ipairs(minetest.get_connected_players()) do
player:set_clouds({color="#FFF0FEF"})
rain.remove_sound(player)
rain.remove_player(player)
end