forked from LizzyFleckenstein03/Memeclone
Fix rain cloud color
This commit is contained in:
parent
cf7fe5e611
commit
1f24b495d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue